Esempio n. 1
0
        public void IsStringType_PrimitiveTypeProvided_FalseReturned()
        {
            TestConverter converter = new TestConverter();

            bool result = converter.TestIsStringType(typeof(int));

            Assert.IsFalse(result);
        }
Esempio n. 2
0
        public void IsStringType_StringTypeProvided_TrueReturned()
        {
            TestConverter converter = new TestConverter();

            bool result = converter.TestIsStringType(typeof(string));

            Assert.IsTrue(result);
        }
Esempio n. 3
0
        public void IsStringType_NullProvided_FalseReturned()
        {
            TestConverter converter = new TestConverter();

            bool result = converter.TestIsStringType(null);

            Assert.IsFalse(result);
        }