public void AnimalConstructorTest() { string name = string.Empty; // TODO: Initialize to an appropriate value AnimalTypes.animalTypes type = new AnimalTypes.animalTypes(); // TODO: Initialize to an appropriate value Animal target = new Animal(name, type); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void addAnimalsToLBandImagesTest1() { string animalsListFile = string.Empty; // TODO: Initialize to an appropriate value ListBox animalListBox = null; // TODO: Initialize to an appropriate value AnimalManager target = new AnimalManager(animalsListFile, animalListBox); // TODO: Initialize to an appropriate value List<IAnimal> animals = null; // TODO: Initialize to an appropriate value AnimalTypes.animalTypes type = new AnimalTypes.animalTypes(); // TODO: Initialize to an appropriate value PictureBox[] pictureBoxes = null; // TODO: Initialize to an appropriate value target.addAnimalsToLBandImages(animals, type, pictureBoxes); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void getImageTest1() { string name = string.Empty; // TODO: Initialize to an appropriate value AnimalTypes.animalTypes type = new AnimalTypes.animalTypes(); // TODO: Initialize to an appropriate value Animal target = new Animal(name, type); // TODO: Initialize to an appropriate value Bitmap expected = null; // TODO: Initialize to an appropriate value Bitmap actual; actual = target.getImage(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void ToStringTest() { string name = string.Empty; // TODO: Initialize to an appropriate value AnimalTypes.animalTypes type = new AnimalTypes.animalTypes(); // TODO: Initialize to an appropriate value Animal target = new Animal(name, type); // TODO: Initialize to an appropriate value string expected = string.Empty; // TODO: Initialize to an appropriate value string actual; actual = target.ToString(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void setImageTest() { string name = string.Empty; // TODO: Initialize to an appropriate value AnimalTypes.animalTypes type = new AnimalTypes.animalTypes(); // TODO: Initialize to an appropriate value Animal target = new Animal(name, type); // TODO: Initialize to an appropriate value string animalImageName = string.Empty; // TODO: Initialize to an appropriate value target.setImage(animalImageName); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
/// <summary> /// Constructor - sets and initialises the name and /// type of the animal to be created. /// </summary> /// <param name="name">The name of the animal.</param> /// <param name="type">The animal's type (species).</param> public Animal(string name, AnimalTypes.animalTypes type) { this.name = name; this.type = type; }