public void ShouldGetAttributeNumber_WhenFloat() { Assert.AreEqual("\"number\"", SchemaTypeMapper.GetAttribute(typeof(float))); }
public void ShouldGetAttributeBoolean() { Assert.AreEqual("\"boolean\"", SchemaTypeMapper.GetAttribute(typeof(bool))); }
public void ShouldGetAttributeNumber_WhenDecimal() { Assert.AreEqual("\"number\"", SchemaTypeMapper.GetAttribute(typeof(decimal))); }
public void ShouldGetAttributeInteger() { Assert.AreEqual("\"integer\"", SchemaTypeMapper.GetAttribute(typeof(int))); }
public void ShouldGetAttributeString() { Assert.AreEqual("\"string\"", SchemaTypeMapper.GetAttribute(typeof(string))); }
public void ShouldGetAttributeString_WhenNullableDateTime() { Assert.AreEqual("\"string\"", SchemaTypeMapper.GetAttribute(typeof(DateTime?))); }
public void ShouldGetAttributeNumber_WhenNullableFloat() { Assert.AreEqual("[\"number\",\"null\"]", SchemaTypeMapper.GetAttribute(typeof(float?))); }
public void ShouldGetAttributeBoolean_WhenNullable() { Assert.AreEqual("[\"boolean\",\"null\"]", SchemaTypeMapper.GetAttribute(typeof(bool?))); }
public void ShouldGetAttributeInteger_WhenNullable() { Assert.AreEqual("[\"integer\",\"null\"]", SchemaTypeMapper.GetAttribute(typeof(int?))); }
public void ShouldGetAttributeNumber_WhenNullableDecimal() { Assert.Equal("[\"number\",\"null\"]", SchemaTypeMapper.GetAttribute(typeof(decimal?))); }