public void ShouldConvertToString_WhenNullableDateTime() { Assert.AreEqual("string", SchemaTypeMapper.Map(typeof(DateTime?))); }
public void ShouldConvertToInteger() { Assert.AreEqual("integer", SchemaTypeMapper.Map(typeof(int))); }
public void ShouldConvertToNumber_WhenNullableDecimal() { Assert.AreEqual("number", SchemaTypeMapper.Map(typeof(decimal?))); }
public void ShouldConvertToNumber_WhenNullableFloat() { Assert.AreEqual("number", SchemaTypeMapper.Map(typeof(float?))); }
public void ShouldConvertToInteger_WhenNullable() { Assert.AreEqual("integer", SchemaTypeMapper.Map(typeof(int?))); }
public void ShouldConvertToBoolean_WhenNullable() { Assert.AreEqual("boolean", SchemaTypeMapper.Map(typeof(bool?))); }
public void ShouldConvertToBoolean() { Assert.AreEqual("boolean", SchemaTypeMapper.Map(typeof(bool))); }
public void ShouldConvertToString() { Assert.AreEqual("string", SchemaTypeMapper.Map(typeof(string))); }
public void ShouldConvertToString_WhenDateTime() { Assert.Equal("string", SchemaTypeMapper.Map(typeof(DateTime))); }
public void ShouldConvertToNumber_WhenFloat() { Assert.Equal("number", SchemaTypeMapper.Map(typeof(float))); }
public void ShouldConvertToNumber_WhenDecimal() { Assert.Equal("number", SchemaTypeMapper.Map(typeof(decimal))); }