-Added FloatParseHandling
-Fixed build
This commit is contained in:
@@ -50,6 +50,19 @@ namespace Newtonsoft.Json.Tests.Linq
|
||||
[TestFixture]
|
||||
public class JValueTests : TestFixtureBase
|
||||
{
|
||||
[Test]
|
||||
public void FloatParseHandling()
|
||||
{
|
||||
JValue v = (JValue) JToken.ReadFrom(
|
||||
new JsonTextReader(new StringReader("9.9"))
|
||||
{
|
||||
FloatParseHandling = Json.FloatParseHandling.Decimal
|
||||
});
|
||||
|
||||
Assert.AreEqual(9.9d, v.Value);
|
||||
Assert.AreEqual(typeof(decimal), v.Value.GetType());
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ChangeValue()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user