SHARE
TWEET

Untitled

a guest Jul 16th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.             //Arrange
  3.             int wantedWasteNumber = 2;
  4.  
  5.             SceneManager.LoadScene("Gameplay", LoadSceneMode.Single);
  6.             yield return null;
  7.  
  8.             GameObject spManagerObject = GameObject.Find("SpawnManager");
  9.             SpawnManager spawnManager = spManagerObject.GetComponent<SpawnManager>();
  10.  
  11.             //Act
  12.             spawnManager.SpawnRandomObject();
  13.             yield return null;
  14.  
  15.             //Assert
  16.             Assert.AreEqual(wantedWasteNumber, GameObject.FindObjectsOfType<MovementScript>().Length);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top