public void ParseFloat() { string text = "{\"key\":123.456}"; PonyWriteEntity.Parse(text); Assert.Equal(BsonType.Double, PonyWriteEntity.Parse(text)["key"].Type); }
public void ParseInteger() { string text = "{\"key\":123}"; PonyWriteEntity.Parse(text); Assert.Equal(BsonType.Int64, PonyWriteEntity.Parse(text)["key"].Type); }
public void ParseString() { string text = "{\"key\":\"value\"}"; Assert.Equal(BsonType.String, PonyWriteEntity.Parse(text)["key"].Type); }
public void ParseBoolean() { string text = "{\"key\":true}"; PonyWriteEntity.Parse(text); }