Exemplo n.º 1
0
        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"));
        }
Exemplo n.º 2
0
        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"));
        }
Exemplo n.º 3
0
        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));
        }