Beispiel #1
0
 public void ShouldConvertToString_WhenNullableDateTime()
 {
     Assert.AreEqual("string", SchemaTypeMapper.Map(typeof(DateTime?)));
 }
Beispiel #2
0
 public void ShouldConvertToInteger()
 {
     Assert.AreEqual("integer", SchemaTypeMapper.Map(typeof(int)));
 }
Beispiel #3
0
 public void ShouldConvertToNumber_WhenNullableDecimal()
 {
     Assert.AreEqual("number", SchemaTypeMapper.Map(typeof(decimal?)));
 }
Beispiel #4
0
 public void ShouldConvertToNumber_WhenNullableFloat()
 {
     Assert.AreEqual("number", SchemaTypeMapper.Map(typeof(float?)));
 }
Beispiel #5
0
 public void ShouldConvertToInteger_WhenNullable()
 {
     Assert.AreEqual("integer", SchemaTypeMapper.Map(typeof(int?)));
 }
Beispiel #6
0
 public void ShouldConvertToBoolean_WhenNullable()
 {
     Assert.AreEqual("boolean", SchemaTypeMapper.Map(typeof(bool?)));
 }
Beispiel #7
0
 public void ShouldConvertToBoolean()
 {
     Assert.AreEqual("boolean", SchemaTypeMapper.Map(typeof(bool)));
 }
Beispiel #8
0
 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)));
 }