Пример #1
0
        public void IsStringType_PrimitiveTypeProvided_FalseReturned()
        {
            TestConverter converter = new TestConverter();

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

            Assert.IsFalse(result);
        }
Пример #2
0
        public void IsStringType_StringTypeProvided_TrueReturned()
        {
            TestConverter converter = new TestConverter();

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

            Assert.IsTrue(result);
        }
Пример #3
0
        public void IsStringType_NullProvided_FalseReturned()
        {
            TestConverter converter = new TestConverter();

            bool result = converter.TestIsStringType(null);

            Assert.IsFalse(result);
        }