Exemplo n.º 1
0
        public void ToClrType_WithAnsiStringFixedLength()
        {
            var actual = DbTypeMapper.ToClrType(DbType.AnsiStringFixedLength);

            actual.Should().Be(typeof(string));
        }
Exemplo n.º 2
0
        public void ToClrType_WithBinary()
        {
            var actual = DbTypeMapper.ToClrType(DbType.Binary);

            actual.Should().Be(typeof(byte[]));
        }
Exemplo n.º 3
0
        public void ToClrType_WithXml()
        {
            var actual = DbTypeMapper.ToClrType(DbType.Xml);

            actual.Should().Be(typeof(XElement));
        }
Exemplo n.º 4
0
        public void ToClrType_WithUnknownType()
        {
            var actual = DbTypeMapper.ToClrType((DbType)(-1));

            actual.Should().Be(typeof(object));
        }
Exemplo n.º 5
0
        public void ToClrType_WithDouble()
        {
            var actual = DbTypeMapper.ToClrType(DbType.Double);

            actual.Should().Be(typeof(double));
        }
Exemplo n.º 6
0
        public void ToClrType_WithVarNumeric()
        {
            var actual = DbTypeMapper.ToClrType(DbType.VarNumeric);

            actual.Should().Be(typeof(decimal));
        }
Exemplo n.º 7
0
        public void ToClrType_WithUInt16()
        {
            var actual = DbTypeMapper.ToClrType(DbType.UInt16);

            actual.Should().Be(typeof(ushort));
        }
Exemplo n.º 8
0
        public void ToClrType_WithCurrency()
        {
            var actual = DbTypeMapper.ToClrType(DbType.Currency);

            actual.Should().Be(typeof(Money));
        }
Exemplo n.º 9
0
        public void ToClrType_WithString()
        {
            var actual = DbTypeMapper.ToClrType(DbType.String);

            actual.Should().Be(typeof(string));
        }
Exemplo n.º 10
0
        public void ToClrType_WithTime()
        {
            var actual = DbTypeMapper.ToClrType(DbType.Time);

            actual.Should().Be(typeof(TimeSpan));
        }
Exemplo n.º 11
0
        public void ToClrType_WithSingle()
        {
            var actual = DbTypeMapper.ToClrType(DbType.Single);

            actual.Should().Be(typeof(float));
        }
Exemplo n.º 12
0
        public void ToClrType_WithObject()
        {
            var actual = DbTypeMapper.ToClrType(DbType.Object);

            actual.Should().Be(typeof(object));
        }
Exemplo n.º 13
0
        public void ToClrType_WithGuid()
        {
            var actual = DbTypeMapper.ToClrType(DbType.Guid);

            actual.Should().Be(typeof(Guid));
        }
Exemplo n.º 14
0
        public void ToClrType_WithByte()
        {
            var actual = DbTypeMapper.ToClrType(DbType.Byte);

            actual.Should().Be(typeof(byte));
        }
Exemplo n.º 15
0
        public void ToClrType_WithUInt32()
        {
            var actual = DbTypeMapper.ToClrType(DbType.UInt32);

            actual.Should().Be(typeof(uint));
        }
Exemplo n.º 16
0
        public void ToClrType_WithBoolean()
        {
            var actual = DbTypeMapper.ToClrType(DbType.Boolean);

            actual.Should().Be(typeof(bool));
        }
Exemplo n.º 17
0
        public void ToClrType_WithUInt64()
        {
            var actual = DbTypeMapper.ToClrType(DbType.UInt64);

            actual.Should().Be(typeof(ulong));
        }
Exemplo n.º 18
0
        public void ToClrType_WithDateTimeOffset()
        {
            var actual = DbTypeMapper.ToClrType(DbType.DateTimeOffset);

            actual.Should().Be(typeof(DateTimeOffset));
        }
Exemplo n.º 19
0
        public void ToClrType_WithDecimal()
        {
            var actual = DbTypeMapper.ToClrType(DbType.Decimal);

            actual.Should().Be(typeof(decimal));
        }