public void FactoryCanConvertReturnsFalse() { var c = new EitherConverter(); Assert.IsFalse(c.CanConvert(typeof(int))); Assert.IsFalse(c.CanConvert(typeof(string))); Assert.IsFalse(c.CanConvert(typeof(object))); }
public void FactoryCanConvertReturnsTrue() { var c = new EitherConverter(); Assert.IsTrue(c.CanConvert(typeof(Either <int, string>))); }