示例#1
0
        public void ConvertTo_TypeError()
        {
            CommaDelimitedStringCollectionConverter cv = new CommaDelimitedStringCollectionConverter();

            Assert.Throws <ArgumentException>(() => cv.ConvertTo(null, null, 59, typeof(string)));
        }
示例#2
0
        public void ConvertTo_TypeError()
        {
            CommaDelimitedStringCollectionConverter cv = new CommaDelimitedStringCollectionConverter();

            Assert.AreEqual("59", cv.ConvertTo(null, null, 59, typeof(string)), "A1");
        }
示例#3
0
        public void ConvertTo_NullError()
        {
            CommaDelimitedStringCollectionConverter cv = new CommaDelimitedStringCollectionConverter();

            Assert.Equal(null, cv.ConvertTo(null, null, null, typeof(string)));
        }