public void Negative_PetWeight_Should_Return_ExtraSmall_Size() { //arrange Pet pet = new Pet("Test", weight: -10, classification: PetClassification.Bird, type: PetType.Canary); //Act PetSize statusResult = pet.Size(); //Assert PetSize expectedResult = PetSize.ExtraSmall; Assert.Equal(expectedResult.ToString(), statusResult.ToString()); }
public void Opposed_Size_Should_Return_Same_Opposed_Size() { //arrange PetSize expectedResult = PetSize.Small; List <Person> persons = new List <Person>() { new Person("Dogs", opposedSize: expectedResult) }; Utils.SetSameOppossedToNone(persons); //Act PetSize statusResult = persons[0].OpposedSize; //Assert Assert.Equal(expectedResult.ToString(), statusResult.ToString()); }
public void Same_Preffered_Size_Opposed_Should_Set_Opposed_To_None() { //arrange List <Person> persons = new List <Person>() { new Person("Dogs", preferredSize: PetSize.Small, opposedSize: PetSize.Small) }; Utils.SetSameOppossedToNone(persons); //Act PetSize statusResult = persons[0].OpposedSize; //Assert PetSize expectedResult = PetSize.None; Assert.Equal(expectedResult.ToString(), statusResult.ToString()); }