コード例 #1
0
 public void Test_ReadValue_Reads_Doubles()
 {
     // note - we don't run any tests on things like double.MinValue - those would fail due to rounding errors.
     var tests = new[] { 0.001, 1.123, 2.2343, -123.1232, -1.2323, -99999.93454, 9999.343455 };
     var dict = tests.ToDictionary(x => x.ToString(System.Globalization.CultureInfo.InvariantCulture),
                                   x => (object)x);
     DoReadValueTests(dict);
 }
コード例 #2
0
 public void Test_ReadValue_Reads_Integers()
 {
     var tests = new[] { 0, 1, 2, 3, -123, -1, Int64.MinValue, Int64.MaxValue };
     var dict = tests.ToDictionary(x => x.ToString(System.Globalization.CultureInfo.InvariantCulture),
                                   x => (object)x);
     DoReadValueTests(dict);
 }