예제 #1
0
        public void CanDetectNotAStringOnDynamicVariable()
        {
            dynamic number = 1;

            Assert.IsFalse(Validator.IsString(number));
        }
예제 #2
0
        public void CanDetectIfNotAString()
        {
            int number = 1;

            Assert.IsFalse(Validator.IsString(number));
        }
예제 #3
0
        public void CanDetectStringOnDynamicVariable()
        {
            dynamic str = "string";

            Assert.IsTrue(Validator.IsString(str));
        }
예제 #4
0
        public void CanDetectIfString()
        {
            string str = "string";

            Assert.IsTrue(Validator.IsString(str));
        }