-Replace tests console writes with asserts
This commit is contained in:
@@ -461,7 +461,6 @@ third line", jsonTextReader.Value);
|
||||
{
|
||||
while (jsonReader.Read())
|
||||
{
|
||||
Console.WriteLine(jsonReader.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2848,11 +2847,9 @@ null//comment
|
||||
double d;
|
||||
|
||||
d = Convert.ToDouble("6.0221418e23", CultureInfo.InvariantCulture);
|
||||
Console.WriteLine(d.ToString(new CultureInfo("fr-FR")));
|
||||
Console.WriteLine(d.ToString("0.#############################################################################"));
|
||||
|
||||
//CultureInfo info = CultureInfo.GetCultureInfo("fr-FR");
|
||||
//Console.WriteLine(info.NumberFormat.NumberDecimalSeparator);
|
||||
Assert.AreEqual("6,0221418E+23", d.ToString(new CultureInfo("fr-FR")));
|
||||
Assert.AreEqual("602214180000000000000000", d.ToString("0.#############################################################################"));
|
||||
|
||||
string json = @"[0e-10,0E-10,0.25e-5,0.3e10,6.0221418e23]";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user