public void Opposed_Classification_Should_Return_Same_Opposed_Classification() { //arrange PetClassification expectedResult = PetClassification.Arachnid; List <Person> persons = new List <Person>() { new Person("Dogs", opposedClassification: expectedResult) }; Utils.SetSameOppossedToNone(persons); //Act PetClassification statusResult = persons[0].OpposedClassification; //Assert Assert.Equal(expectedResult.ToString(), statusResult.ToString()); }
public void Same_Preffered_Classification_Opposed_Should_Set_Opposed_To_None() { //arrange List <Person> persons = new List <Person>() { new Person("Dogs", preferredClassification: PetClassification.Bird, opposedClassification: PetClassification.Bird) }; Utils.SetSameOppossedToNone(persons); //Act PetClassification statusResult = persons[0].OpposedClassification; //Assert PetClassification expectedResult = PetClassification.None; Assert.Equal(expectedResult.ToString(), statusResult.ToString()); }