Exemple #1
0
        public void CanConvertReturnsFalseForEverythingElse()
        {
            var c = new EnumSnakeCaseConverter();

            Assert.IsFalse(c.CanConvert(typeof(int)));
            Assert.IsFalse(c.CanConvert(typeof(object)));
            Assert.IsFalse(c.CanConvert(typeof(string)));
        }
Exemple #2
0
        public void CanConvertReturnsFalseForFlags()
        {
            var c = new EnumSnakeCaseConverter();

            Assert.IsFalse(c.CanConvert(typeof(FlagEnum)));
        }
Exemple #3
0
        public void CanConvertReturnsTrueForEnums()
        {
            var c = new EnumSnakeCaseConverter();

            Assert.IsTrue(c.CanConvert(typeof(Cartoon)));
        }