Ejemplo n.º 1
0
        public void CanReadTest()
        {
            var converter = new XmlDictionaryConverter();

            Assert.IsTrue(converter.CanRead(typeof(Dictionary <string, object>)));
            Assert.IsTrue(converter.CanRead(typeof(Dictionary <int, int>)));
            Assert.IsFalse(converter.CanRead(typeof(object)));
            Assert.IsFalse(converter.CanRead(typeof(IDictionary)));
            Assert.IsFalse(converter.CanRead(typeof(Dictionary <,>)));
        }