private void DisplayCreateRandomAnimal() { Animal randomAnimal = AnimalFactory.CreateRandomAnimal(); ComponentIsCreated(randomAnimal); DisplayHowSelectContainerForAnimal(randomAnimal); }
public void GenerateMockData() { for (int i = 0; i < 10; i++) { train.AnimalsToAdd.Add(AnimalFactory.CreateRandomAnimal()); } Assert.IsTrue(true); }
private void generateMockDataButton_Click(object sender, EventArgs e) { createdAnimalsBox.Items.Clear(); for (int i = 0; i < 10; i++) { train.AnimalsToAdd.Add(AnimalFactory.CreateRandomAnimal()); } foreach (Animal animal in train.AnimalsToAdd) { createdAnimalsBox.Items.Add(animal.getString()); } }
public void CreateRandomAnimal_IsCreatedObjectNotNull_ReturnsTrue() { Assert.NotNull(AnimalFactory.CreateRandomAnimal()); }
public void CreateRandomAnimal_IsCreatedObjectIsDerivedOfAnimal_ReturnsTrue() { Assert.IsAssignableFrom <Animal>(AnimalFactory.CreateRandomAnimal()); }
public void AddRandomAnimal() { train.AnimalsToAdd.Add(AnimalFactory.CreateRandomAnimal()); Assert.IsTrue(true); }