public void TryResolve_Known_HasDefaultDbTypeResolver_ReturnsExpectedDbType()
        {
            var sut = new DbTypeResolverCollection();

            sut.Add(new DbTypeResolver());

            var actual = sut.TryResolve(typeof(string));

            Assert.AreEqual(DbType.String, actual);
        }
        public void TryResolve_Unknown_HasDefaultDbTypeResolver_ReturnsNull()
        {
            var sut = new DbTypeResolverCollection();

            sut.Add(new DbTypeResolver());

            var actual = sut.TryResolve(typeof(TimeSpan));

            Assert.AreEqual(null, actual);
        }
        public void TryResolve_Xml_HasDefaultDbTypeResolver_HasCustomDbTypeResolver_ReturnsXml()
        {
            var sut = new DbTypeResolverCollection();

            sut.Add(new DbTypeResolver());
            sut.Add(new CustomDbTypeResolver());

            var actual = sut.TryResolve(typeof(System.Xml.XmlDocument));

            Assert.AreEqual(DbType.Xml, actual);
        }
        public void TryResolve_Null_ThrowsException()
        {
            var sut = new DbTypeResolverCollection();

            sut.TryResolve(null);
        }