public void CanConvertReturnsFalseForEverythingElse() { var c = new EitherConverterInner <int, string>(); var can = c.CanConvert(typeof(Boolean)); Assert.IsFalse(c.CanConvert(typeof(object))); Assert.IsFalse(c.CanConvert(typeof(string))); Assert.IsFalse(c.CanConvert(typeof(decimal))); Assert.IsFalse(c.CanConvert(typeof(int))); Assert.IsFalse(can); }
public void CanConvertReturnsTrueForEithers() { var c = new EitherConverterInner <int, string>(); Assert.IsTrue(c.CanConvert(typeof(Either <int, string>))); }