Exemple #1
0
        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)));
        }
Exemple #2
0
        public void FactoryCanConvertReturnsTrue()
        {
            var c = new EitherConverter();

            Assert.IsTrue(c.CanConvert(typeof(Either <int, string>)));
        }