public void ShouldReturnClassNameOfIntegerAndString() { IClassIdentifier <Int32, String> identifier = new ClassIdentifierImpl <Int32, String>(); String[] expectedTypes = new String[] { "Int32", "String" }; int one = 1; CollectionAssert.AreEqual(expectedTypes, identifier.IdentifyClasses(one, "pie")); }
public void ShouldReturnClassNameOfAnimalAndString() { IClassIdentifier <Animal, String> identifier = new ClassIdentifierImpl <Animal, String>(); String[] expectedTypes = new String[] { "Animal", "String" }; Animal animal = new Animal(); CollectionAssert.AreEqual(expectedTypes, identifier.IdentifyClasses(animal, "pie")); }
public void ShouldReturnClassNameOfIntegerIfBothParametersAreIntegers() { IClassIdentifier <Int32, Int32> identifier = new ClassIdentifierImpl <Int32, Int32>(); String[] expectedTypes = new String[] { "Int32", "Int32" }; int one = 1; int two = 2; CollectionAssert.AreEqual(expectedTypes, identifier.IdentifyClasses(one, two)); }