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))); }
public void CanConvertReturnsFalseForFlags() { var c = new EnumSnakeCaseConverter(); Assert.IsFalse(c.CanConvert(typeof(FlagEnum))); }
public void CanConvertReturnsTrueForEnums() { var c = new EnumSnakeCaseConverter(); Assert.IsTrue(c.CanConvert(typeof(Cartoon))); }