2009-07-11 Michael Barker <mike@middlesoft.co.uk>
[mono.git] / mcs / class / corlib / Test / System / DoubleFormatterTest.cs
1 // DoubleFormatterTest.cs - NUnit Test Cases for System.DoubleFormatter
2 //
3 // Author:
4 //     Patrick Kalkman  kalkman@cistron.nl
5 //
6 // (C) 2003 Patrick Kalkman
7 // 
8 using NUnit.Framework;
9 using System;
10 using System.Threading;
11 using System.Globalization;
12
13 namespace MonoTests.System 
14 {
15         [TestFixture]
16         public class DoubleFormatterTest 
17         {
18                 CultureInfo old_culture;
19
20                 [SetUp]
21                 public void SetUp ()
22                 {
23                         old_culture = Thread.CurrentThread.CurrentCulture;
24                         Thread.CurrentThread.CurrentCulture = new CultureInfo ("en-US", false);
25                 }
26
27                 [TearDown]
28                 public void TearDown ()
29                 {
30                         Thread.CurrentThread.CurrentCulture = old_culture;
31                 }
32
33                 [Test]
34                 [ExpectedException(typeof(FormatException))]
35                 public void TestToDecimal()
36                 {
37                         Double x = 1.0000001F;
38                         string Result = x.ToString ("D2"); //To Decimal is for integral types only. 
39                 }
40                 
41                 [Test]
42                 [ExpectedException(typeof(FormatException))]
43                 public void TestToHex()
44                 {
45                         Double x = 1.212121F;
46                         string Result = x.ToString ("X2"); //To Hex is for integral types only. 
47                 }
48
49                 [Test]
50                 [ExpectedException(typeof(FormatException))]
51                 public void TestToUnknown()
52                 {
53                         Double x = 1.212121F;
54                         string Result = x.ToString ("L2"); //Invalid format. 
55                 }
56                 
57                 private void FormatStringTest(string TestNumber, NumberFormatInfo NumberFormat, double Number, string Format, string ExpectedResult)
58                 {
59                         Assert.AreEqual (ExpectedResult, Number.ToString(Format, NumberFormat), TestNumber);
60                 }
61
62                 private NumberFormatInfo GetNumberFormat1()
63                 {
64                         NumberFormatInfo format = new NumberFormatInfo();
65                         
66                         format.NaNSymbol = "NaN";
67                         format.PositiveSign = "+";
68                         format.NegativeSign = "-";
69                         format.PerMilleSymbol = "x";
70                         format.PositiveInfinitySymbol = "Infinity";
71                         format.NegativeInfinitySymbol = "-Infinity";
72                         
73                         format.NumberDecimalDigits = 5; 
74                         format.NumberDecimalSeparator = ",";
75                         format.NumberGroupSeparator = ".";
76                         format.NumberGroupSizes = new int[] {3};
77                         format.NumberNegativePattern = 2;
78                         
79                         format.CurrencyDecimalDigits = 2;
80                         format.CurrencyDecimalSeparator = ",";
81                         format.CurrencyGroupSeparator = ".";
82                         format.CurrencyGroupSizes = new int[] {3};
83                         format.CurrencyNegativePattern = 8;
84                         format.CurrencyPositivePattern = 3;
85                         format.CurrencySymbol = "EUR";
86                         
87                         format.PercentDecimalDigits = 5; 
88                         format.PercentDecimalSeparator = ",";
89                         format.PercentGroupSeparator = ".";
90                         format.PercentGroupSizes = new int[] {3};
91                         format.PercentNegativePattern = 0;
92                         format.PercentPositivePattern = 0;
93                         format.PercentSymbol = "%";
94                         
95                         return format;
96                 }
97                 
98                 private NumberFormatInfo GetNumberFormat2()
99                 {
100                         NumberFormatInfo format = new NumberFormatInfo();
101                         
102                         format.NaNSymbol = "Geen";
103                         format.PositiveSign = "+";
104                         format.NegativeSign = "-";
105                         format.PerMilleSymbol = "x";
106                         format.PositiveInfinitySymbol = "Oneindig";
107                         format.NegativeInfinitySymbol = "-Oneindig";
108                         
109                         format.NumberDecimalDigits = 2; 
110                         format.NumberDecimalSeparator = ".";
111                         format.NumberGroupSeparator = ",";
112                         format.NumberGroupSizes = new int[] {3};
113                         format.NumberNegativePattern = 1;
114                         
115                         format.CurrencyDecimalDigits = 1;
116                         format.CurrencyDecimalSeparator = ".";
117                         format.CurrencyGroupSeparator = ",";
118                         format.CurrencyGroupSizes = new int[] {3};
119                         format.CurrencyNegativePattern = 3;
120                         format.CurrencyPositivePattern = 1;
121                         format.CurrencySymbol = "$";
122                         
123                         format.PercentDecimalDigits = 2; 
124                         format.PercentDecimalSeparator = ".";
125                         format.PercentGroupSeparator = ",";
126                         format.PercentGroupSizes = new int[] {3};
127                         format.PercentNegativePattern = 1;
128                         format.PercentPositivePattern = 2;
129                         format.PercentSymbol = "##";
130                         
131                         return format;
132                 }
133
134                 [Test]
135                 public void TestFormatStringsN1_Fixed ()
136                 {
137                         NumberFormatInfo NumberFormat;
138                         
139                         NumberFormat = GetNumberFormat1();                      
140                         FormatStringTest ("DblFn1 #15", NumberFormat, 99999.9999996, "E67", "9,9999999999599997000000000000000000000000000000000000000000000000000E+004");
141                         FormatStringTest ("DblFn1 #31", NumberFormat, 99999.9999996, "G67", "99999,999999599997");  
142                         FormatStringTest ("DblFn1 #63", NumberFormat, 1.79769313486231E+307, "E67", "1,7976931348623100000000000000000000000000000000000000000000000000000E+307");  
143                         FormatStringTest ("DblFn1 #88", NumberFormat, 1.79769313486231E+307, "P", "1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,00000 %");  
144                         FormatStringTest ("DblFn1 #89", NumberFormat, 1.79769313486231E+307, "P0", "1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000 %");  
145                         FormatStringTest ("DblFn1 #90", NumberFormat, 1.79769313486231E+307, "P1", "1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0 %");                        
146                         FormatStringTest ("DblFn1 #91", NumberFormat, 1.79769313486231E+307, "P3", "1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000 %");  
147                         FormatStringTest ("DblFn1 #92", NumberFormat, 1.79769313486231E+307, "P4", "1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000 %");  
148                         FormatStringTest ("DblFn1 #93", NumberFormat, 1.79769313486231E+307, "P6", "1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000000 %");  
149                         FormatStringTest ("DblFn1 #94", NumberFormat, 1.79769313486231E+307, "P9", "1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000000000 %");  
150                         FormatStringTest ("DblFn1 #95", NumberFormat, 1.79769313486231E+307, "P67", "1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000000000000000000000000000000000000000000000000000000000000000000 %");
151                         FormatStringTest ("DblFn1 #111", NumberFormat, -1.79769313486231E+307, "E67", "-1,7976931348623100000000000000000000000000000000000000000000000000000E+307");  
152                         FormatStringTest ("DblFn1 #136", NumberFormat, -1.79769313486231E+307, "P", "-1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,00000 %");  
153                         FormatStringTest ("DblFn1 #137", NumberFormat, -1.79769313486231E+307, "P0", "-1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000 %");  
154                         FormatStringTest ("DblFn1 #138", NumberFormat, -1.79769313486231E+307, "P1", "-1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0 %");  
155                         FormatStringTest ("DblFn1 #139", NumberFormat, -1.79769313486231E+307, "P3", "-1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000 %");  
156                         FormatStringTest ("DblFn1 #140", NumberFormat, -1.79769313486231E+307, "P4", "-1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000 %");  
157                         FormatStringTest ("DblFn1 #141", NumberFormat, -1.79769313486231E+307, "P6", "-1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000000 %");  
158                         FormatStringTest ("DblFn1 #142", NumberFormat, -1.79769313486231E+307, "P9", "-1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000000000 %");  
159                         FormatStringTest ("DblFn1 #143", NumberFormat, -1.79769313486231E+307, "P67", "-1.797.693.134.862.310.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000000000000000000000000000000000000000000000000000000000000000000 %");  
160
161                         FormatStringTest ("DblFn1 #152", NumberFormat, 1E-10, "E", "1,000000E-010");  
162                         FormatStringTest ("DblFn1 #153", NumberFormat, 1E-10, "E0", "1E-010");  
163                         FormatStringTest ("DblFn1 #154", NumberFormat, 1E-10, "E1", "1,0E-010");  
164                         FormatStringTest ("DblFn1 #155", NumberFormat, 1E-10, "E3", "1,000E-010");  
165                         FormatStringTest ("DblFn1 #156", NumberFormat, 1E-10, "E4", "1,0000E-010");  
166                         FormatStringTest ("DblFn1 #157", NumberFormat, 1E-10, "E6", "1,000000E-010");  
167                         FormatStringTest ("DblFn1 #158", NumberFormat, 1E-10, "E9", "1,000000000E-010");  
168                         FormatStringTest ("DblFn1 #170", NumberFormat, 1E-10, "G1", "1E-10");  
169                         FormatStringTest ("DblFn1 #171", NumberFormat, 1E-10, "G3", "1E-10");  
170                         FormatStringTest ("DblFn1 #172", NumberFormat, 1E-10, "G4", "1E-10");  
171                         FormatStringTest ("DblFn1 #173", NumberFormat, 1E-10, "G6", "1E-10");  
172                         FormatStringTest ("DblFn1 #174", NumberFormat, 1E-10, "G9", "1E-10");  
173                         FormatStringTest ("DblFn1 #200", NumberFormat, 4.94065645841247E-324, "E", "4,940656E-324");  
174                         FormatStringTest ("DblFn1 #201", NumberFormat, 4.94065645841247E-324, "E0", "5E-324");  
175                         FormatStringTest ("DblFn1 #202", NumberFormat, 4.94065645841247E-324, "E1", "4,9E-324");  
176                         FormatStringTest ("DblFn1 #203", NumberFormat, 4.94065645841247E-324, "E3", "4,941E-324");  
177                         FormatStringTest ("DblFn1 #204", NumberFormat, 4.94065645841247E-324, "E4", "4,9407E-324");  
178                         FormatStringTest ("DblFn1 #205", NumberFormat, 4.94065645841247E-324, "E6", "4,940656E-324");  
179                         FormatStringTest ("DblFn1 #206", NumberFormat, 4.94065645841247E-324, "E9", "4,940656458E-324");  
180                         FormatStringTest ("DblFn1 #207", NumberFormat, 4.94065645841247E-324, "E67", "4,9406564584124654000000000000000000000000000000000000000000000000000E-324");  
181                         FormatStringTest ("DblFn1 #218", NumberFormat, 4.94065645841247E-324, "G1", "5E-324");  
182                         FormatStringTest ("DblFn1 #219", NumberFormat, 4.94065645841247E-324, "G3", "4,94E-324");  
183                         FormatStringTest ("DblFn1 #220", NumberFormat, 4.94065645841247E-324, "G4", "4,941E-324");  
184                         FormatStringTest ("DblFn1 #221", NumberFormat, 4.94065645841247E-324, "G6", "4,94066E-324");  
185                         FormatStringTest ("DblFn1 #222", NumberFormat, 4.94065645841247E-324, "G9", "4,94065646E-324");  
186                         FormatStringTest ("DblFn1 #223", NumberFormat, 4.94065645841247E-324, "G67", "4,9406564584124654E-324");  
187                         
188                         NumberFormat = GetNumberFormat2();                      
189                         FormatStringTest ("DblFn2 #15", NumberFormat, 99999.9999996, "E67", "9.9999999999599997000000000000000000000000000000000000000000000000000E+004");
190                         FormatStringTest ("DblFn2 #31", NumberFormat, 99999.9999996, "G67", "99999.999999599997");  
191                         FormatStringTest ("DblFn2 #63", NumberFormat, 1.79769313486231E+307, "E67", "1.7976931348623100000000000000000000000000000000000000000000000000000E+307");  
192                         FormatStringTest ("DblFn2 #88", NumberFormat, 1.79769313486231E+307, "P", "##1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.00");  
193                         FormatStringTest ("DblFn2 #89", NumberFormat, 1.79769313486231E+307, "P0", "##1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000");  
194                         FormatStringTest ("DblFn2 #90", NumberFormat, 1.79769313486231E+307, "P1", "##1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0");  
195                         FormatStringTest ("DblFn2 #91", NumberFormat, 1.79769313486231E+307, "P3", "##1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000");  
196                         FormatStringTest ("DblFn2 #92", NumberFormat, 1.79769313486231E+307, "P4", "##1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0000");  
197                         FormatStringTest ("DblFn2 #93", NumberFormat, 1.79769313486231E+307, "P6", "##1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000000");  
198                         FormatStringTest ("DblFn2 #94", NumberFormat, 1.79769313486231E+307, "P9", "##1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000000000");  
199                         FormatStringTest ("DblFn2 #95", NumberFormat, 1.79769313486231E+307, "P67", "##1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0000000000000000000000000000000000000000000000000000000000000000000");  
200                         FormatStringTest ("DblFn2 #111", NumberFormat, -1.79769313486231E+307, "E67", "-1.7976931348623100000000000000000000000000000000000000000000000000000E+307");  
201                         FormatStringTest ("DblFn2 #136", NumberFormat, -1.79769313486231E+307, "P", "-1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.00##");  
202                         FormatStringTest ("DblFn2 #137", NumberFormat, -1.79769313486231E+307, "P0", "-1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000##");  
203                         FormatStringTest ("DblFn2 #138", NumberFormat, -1.79769313486231E+307, "P1", "-1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0##");  
204                         FormatStringTest ("DblFn2 #139", NumberFormat, -1.79769313486231E+307, "P3", "-1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000##");  
205                         FormatStringTest ("DblFn2 #140", NumberFormat, -1.79769313486231E+307, "P4", "-1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0000##");  
206                         FormatStringTest ("DblFn2 #141", NumberFormat, -1.79769313486231E+307, "P6", "-1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000000##");  
207                         FormatStringTest ("DblFn2 #142", NumberFormat, -1.79769313486231E+307, "P9", "-1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000000000##");  
208                         FormatStringTest ("DblFn2 #143", NumberFormat, -1.79769313486231E+307, "P67", "-1,797,693,134,862,310,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0000000000000000000000000000000000000000000000000000000000000000000##");  
209                         FormatStringTest ("DblFn2 #152", NumberFormat, 1E-10, "E", "1.000000E-010");  
210                         FormatStringTest ("DblFn2 #153", NumberFormat, 1E-10, "E0", "1E-010");  
211                         FormatStringTest ("DblFn2 #154", NumberFormat, 1E-10, "E1", "1.0E-010");  
212                         FormatStringTest ("DblFn2 #155", NumberFormat, 1E-10, "E3", "1.000E-010");  
213                         FormatStringTest ("DblFn2 #156", NumberFormat, 1E-10, "E4", "1.0000E-010");  
214                         FormatStringTest ("DblFn2 #157", NumberFormat, 1E-10, "E6", "1.000000E-010");  
215                         FormatStringTest ("DblFn2 #158", NumberFormat, 1E-10, "E9", "1.000000000E-010");  
216                         FormatStringTest ("DblFn2 #170", NumberFormat, 1E-10, "G1", "1E-10");  
217                         FormatStringTest ("DblFn2 #171", NumberFormat, 1E-10, "G3", "1E-10");  
218                         FormatStringTest ("DblFn2 #172", NumberFormat, 1E-10, "G4", "1E-10");  
219                         FormatStringTest ("DblFn2 #173", NumberFormat, 1E-10, "G6", "1E-10");  
220                         FormatStringTest ("DblFn2 #174", NumberFormat, 1E-10, "G9", "1E-10");  
221                         FormatStringTest ("DblFn2 #200", NumberFormat, 4.94065645841247E-324, "E", "4.940656E-324");  
222                         FormatStringTest ("DblFn2 #201", NumberFormat, 4.94065645841247E-324, "E0", "5E-324");  
223                         FormatStringTest ("DblFn2 #202", NumberFormat, 4.94065645841247E-324, "E1", "4.9E-324");  
224                         FormatStringTest ("DblFn2 #203", NumberFormat, 4.94065645841247E-324, "E3", "4.941E-324");  
225                         FormatStringTest ("DblFn2 #204", NumberFormat, 4.94065645841247E-324, "E4", "4.9407E-324");  
226                         FormatStringTest ("DblFn2 #205", NumberFormat, 4.94065645841247E-324, "E6", "4.940656E-324");  
227                         FormatStringTest ("DblFn2 #206", NumberFormat, 4.94065645841247E-324, "E9", "4.940656458E-324");  
228                         FormatStringTest ("DblFn2 #207", NumberFormat, 4.94065645841247E-324, "E67", "4.9406564584124654000000000000000000000000000000000000000000000000000E-324");  
229                         FormatStringTest ("DblFn2 #218", NumberFormat, 4.94065645841247E-324, "G1", "5E-324");  
230                         FormatStringTest ("DblFn2 #219", NumberFormat, 4.94065645841247E-324, "G3", "4.94E-324");  
231                         FormatStringTest ("DblFn2 #220", NumberFormat, 4.94065645841247E-324, "G4", "4.941E-324");  
232                         FormatStringTest ("DblFn2 #221", NumberFormat, 4.94065645841247E-324, "G6", "4.94066E-324");  
233                         FormatStringTest ("DblFn2 #222", NumberFormat, 4.94065645841247E-324, "G9", "4.94065646E-324");  
234                         FormatStringTest ("DblFn2 #223", NumberFormat, 4.94065645841247E-324, "G67", "4.9406564584124654E-324");  
235                         
236                 }
237                 
238                 [Test]
239                 public void TestFormatStringsN1()
240                 {
241                         NumberFormatInfo NumberFormat = GetNumberFormat1();                     
242                         
243                         FormatStringTest ("DblFn1 #0", NumberFormat, 99999.9999996, "C", "100.000,00 EUR");
244                         FormatStringTest ("DblFn1 #1", NumberFormat, 99999.9999996, "C0", "100.000 EUR");  
245                         FormatStringTest ("DblFn1 #2", NumberFormat, 99999.9999996, "C1", "100.000,0 EUR");  
246                         FormatStringTest ("DblFn1 #3", NumberFormat, 99999.9999996, "C3", "100.000,000 EUR");  
247                         FormatStringTest ("DblFn1 #4", NumberFormat, 99999.9999996, "C4", "100.000,0000 EUR");  
248                         FormatStringTest ("DblFn1 #5", NumberFormat, 99999.9999996, "C6", "100.000,000000 EUR");  
249                         FormatStringTest ("DblFn1 #6", NumberFormat, 99999.9999996, "C9", "99.999,999999600 EUR");  
250                         FormatStringTest ("DblFn1 #7", NumberFormat, 99999.9999996, "C67", "99.999,9999996000000000000000000000000000000000000000000000000000000000000 EUR");  
251                         FormatStringTest ("DblFn1 #8", NumberFormat, 99999.9999996, "E", "1,000000E+005");  
252                         FormatStringTest ("DblFn1 #9", NumberFormat, 99999.9999996, "E0", "1E+005");  
253                         FormatStringTest ("DblFn1 #10", NumberFormat, 99999.9999996, "E1", "1,0E+005");  
254                         FormatStringTest ("DblFn1 #11", NumberFormat, 99999.9999996, "E3", "1,000E+005");  
255                         FormatStringTest ("DblFn1 #12", NumberFormat, 99999.9999996, "E4", "1,0000E+005");  
256                         FormatStringTest ("DblFn1 #13", NumberFormat, 99999.9999996, "E6", "1,000000E+005");  
257                         FormatStringTest ("DblFn1 #14", NumberFormat, 99999.9999996, "E9", "1,000000000E+005");  
258                         FormatStringTest ("DblFn1 #16", NumberFormat, 99999.9999996, "F", "100000,00000");  
259                         FormatStringTest ("DblFn1 #17", NumberFormat, 99999.9999996, "F0", "100000");  
260                         FormatStringTest ("DblFn1 #18", NumberFormat, 99999.9999996, "F1", "100000,0");  
261                         FormatStringTest ("DblFn1 #19", NumberFormat, 99999.9999996, "F3", "100000,000");  
262                         FormatStringTest ("DblFn1 #20", NumberFormat, 99999.9999996, "F4", "100000,0000");  
263                         FormatStringTest ("DblFn1 #21", NumberFormat, 99999.9999996, "F6", "100000,000000");  
264                         FormatStringTest ("DblFn1 #22", NumberFormat, 99999.9999996, "F9", "99999,999999600");  
265                         FormatStringTest ("DblFn1 #23", NumberFormat, 99999.9999996, "F67", "99999,9999996000000000000000000000000000000000000000000000000000000000000");  
266                         FormatStringTest ("DblFn1 #24", NumberFormat, 99999.9999996, "G", "99999,9999996");  
267                         FormatStringTest ("DblFn1 #25", NumberFormat, 99999.9999996, "G0", "99999,9999996");  
268                         FormatStringTest ("DblFn1 #26", NumberFormat, 99999.9999996, "G1", "1E+05");  
269                         FormatStringTest ("DblFn1 #27", NumberFormat, 99999.9999996, "G3", "1E+05");  
270                         FormatStringTest ("DblFn1 #28", NumberFormat, 99999.9999996, "G4", "1E+05");  
271                         FormatStringTest ("DblFn1 #29", NumberFormat, 99999.9999996, "G6", "100000");  
272                         FormatStringTest ("DblFn1 #30", NumberFormat, 99999.9999996, "G9", "100000");  
273                         FormatStringTest ("DblFn1 #32", NumberFormat, 99999.9999996, "N", "100.000,00000");  
274                         FormatStringTest ("DblFn1 #33", NumberFormat, 99999.9999996, "N0", "100.000");  
275                         FormatStringTest ("DblFn1 #34", NumberFormat, 99999.9999996, "N1", "100.000,0");  
276                         FormatStringTest ("DblFn1 #35", NumberFormat, 99999.9999996, "N3", "100.000,000");  
277                         FormatStringTest ("DblFn1 #36", NumberFormat, 99999.9999996, "N4", "100.000,0000");  
278                         FormatStringTest ("DblFn1 #37", NumberFormat, 99999.9999996, "N6", "100.000,000000");  
279                         FormatStringTest ("DblFn1 #38", NumberFormat, 99999.9999996, "N9", "99.999,999999600");  
280                         FormatStringTest ("DblFn1 #39", NumberFormat, 99999.9999996, "N67", "99.999,9999996000000000000000000000000000000000000000000000000000000000000");  
281                         FormatStringTest ("DblFn1 #40", NumberFormat, 99999.9999996, "P", "9.999.999,99996 %");  
282                         FormatStringTest ("DblFn1 #41", NumberFormat, 99999.9999996, "P0", "10.000.000 %");  
283                         FormatStringTest ("DblFn1 #42", NumberFormat, 99999.9999996, "P1", "10.000.000,0 %");  
284                         FormatStringTest ("DblFn1 #43", NumberFormat, 99999.9999996, "P3", "10.000.000,000 %");  
285                         FormatStringTest ("DblFn1 #44", NumberFormat, 99999.9999996, "P4", "10.000.000,0000 %");  
286                         FormatStringTest ("DblFn1 #45", NumberFormat, 99999.9999996, "P6", "9.999.999,999960 %");  
287                         FormatStringTest ("DblFn1 #46", NumberFormat, 99999.9999996, "P9", "9.999.999,999960000 %");  
288                         FormatStringTest ("DblFn1 #47", NumberFormat, 99999.9999996, "P67", "9.999.999,9999600000000000000000000000000000000000000000000000000000000000000 %");  
289                         FormatStringTest ("DblFn1 #48", NumberFormat, 1.79769313486231E+307, "C", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,00 EUR");  
290                         FormatStringTest ("DblFn1 #49", NumberFormat, 1.79769313486231E+307, "C0", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000 EUR");  
291                         FormatStringTest ("DblFn1 #50", NumberFormat, 1.79769313486231E+307, "C1", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0 EUR");  
292                         FormatStringTest ("DblFn1 #51", NumberFormat, 1.79769313486231E+307, "C3", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000 EUR");  
293                         FormatStringTest ("DblFn1 #52", NumberFormat, 1.79769313486231E+307, "C4", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000 EUR");  
294                         FormatStringTest ("DblFn1 #53", NumberFormat, 1.79769313486231E+307, "C6", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000000 EUR");  
295                         FormatStringTest ("DblFn1 #54", NumberFormat, 1.79769313486231E+307, "C9", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000000000 EUR");  
296                         FormatStringTest ("DblFn1 #55", NumberFormat, 1.79769313486231E+307, "C67", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000000000000000000000000000000000000000000000000000000000000000000 EUR");  
297                         FormatStringTest ("DblFn1 #56", NumberFormat, 1.79769313486231E+307, "E", "1,797693E+307");  
298                         FormatStringTest ("DblFn1 #57", NumberFormat, 1.79769313486231E+307, "E0", "2E+307");  
299                         FormatStringTest ("DblFn1 #58", NumberFormat, 1.79769313486231E+307, "E1", "1,8E+307");  
300                         FormatStringTest ("DblFn1 #59", NumberFormat, 1.79769313486231E+307, "E3", "1,798E+307");  
301                         FormatStringTest ("DblFn1 #60", NumberFormat, 1.79769313486231E+307, "E4", "1,7977E+307");  
302                         FormatStringTest ("DblFn1 #61", NumberFormat, 1.79769313486231E+307, "E6", "1,797693E+307");  
303                         FormatStringTest ("DblFn1 #62", NumberFormat, 1.79769313486231E+307, "E9", "1,797693135E+307");  
304                         FormatStringTest ("DblFn1 #64", NumberFormat, 1.79769313486231E+307, "F", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000");  
305                         FormatStringTest ("DblFn1 #65", NumberFormat, 1.79769313486231E+307, "F0", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");  
306                         FormatStringTest ("DblFn1 #66", NumberFormat, 1.79769313486231E+307, "F1", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0");  
307                         FormatStringTest ("DblFn1 #67", NumberFormat, 1.79769313486231E+307, "F3", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000");  
308                         FormatStringTest ("DblFn1 #68", NumberFormat, 1.79769313486231E+307, "F4", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000");  
309                         FormatStringTest ("DblFn1 #69", NumberFormat, 1.79769313486231E+307, "F6", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000");  
310                         FormatStringTest ("DblFn1 #70", NumberFormat, 1.79769313486231E+307, "F9", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000");  
311                         FormatStringTest ("DblFn1 #71", NumberFormat, 1.79769313486231E+307, "F67", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000");  
312                         FormatStringTest ("DblFn1 #72", NumberFormat, 1.79769313486231E+307, "G", "1,79769313486231E+307");  
313                         FormatStringTest ("DblFn1 #73", NumberFormat, 1.79769313486231E+307, "G0", "1,79769313486231E+307");  
314                         FormatStringTest ("DblFn1 #74", NumberFormat, 1.79769313486231E+307, "G1", "2E+307");  
315                         FormatStringTest ("DblFn1 #75", NumberFormat, 1.79769313486231E+307, "G3", "1,8E+307");  
316                         FormatStringTest ("DblFn1 #76", NumberFormat, 1.79769313486231E+307, "G4", "1,798E+307");  
317                         FormatStringTest ("DblFn1 #77", NumberFormat, 1.79769313486231E+307, "G6", "1,79769E+307");  
318                         FormatStringTest ("DblFn1 #78", NumberFormat, 1.79769313486231E+307, "G9", "1,79769313E+307");  
319                         FormatStringTest ("DblFn1 #79", NumberFormat, 1.79769313486231E+307, "G67", "1,79769313486231E+307");  
320                         FormatStringTest ("DblFn1 #80", NumberFormat, 1.79769313486231E+307, "N", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,00000");  
321                         FormatStringTest ("DblFn1 #81", NumberFormat, 1.79769313486231E+307, "N0", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000");  
322                         FormatStringTest ("DblFn1 #82", NumberFormat, 1.79769313486231E+307, "N1", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0");  
323                         FormatStringTest ("DblFn1 #83", NumberFormat, 1.79769313486231E+307, "N3", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000");  
324                         FormatStringTest ("DblFn1 #84", NumberFormat, 1.79769313486231E+307, "N4", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000");  
325                         FormatStringTest ("DblFn1 #85", NumberFormat, 1.79769313486231E+307, "N6", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000000");  
326                         FormatStringTest ("DblFn1 #86", NumberFormat, 1.79769313486231E+307, "N9", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000000000");  
327                         FormatStringTest ("DblFn1 #87", NumberFormat, 1.79769313486231E+307, "N67", "17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000000000000000000000000000000000000000000000000000000000000000000");  
328
329                         FormatStringTest ("DblFn1 #96", NumberFormat, -1.79769313486231E+307, "C", "-17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,00 EUR");  
330                         FormatStringTest ("DblFn1 #97", NumberFormat, -1.79769313486231E+307, "C0", "-17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000 EUR");  
331                         FormatStringTest ("DblFn1 #98", NumberFormat, -1.79769313486231E+307, "C1", "-17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0 EUR");  
332                         FormatStringTest ("DblFn1 #99", NumberFormat, -1.79769313486231E+307, "C3", "-17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000 EUR");  
333                         FormatStringTest ("DblFn1 #100", NumberFormat, -1.79769313486231E+307, "C4", "-17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000 EUR");  
334                         FormatStringTest ("DblFn1 #101", NumberFormat, -1.79769313486231E+307, "C6", "-17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000000 EUR");  
335                         FormatStringTest ("DblFn1 #102", NumberFormat, -1.79769313486231E+307, "C9", "-17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000000000 EUR");  
336                         FormatStringTest ("DblFn1 #103", NumberFormat, -1.79769313486231E+307, "C67", "-17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000000000000000000000000000000000000000000000000000000000000000000 EUR");  
337                         FormatStringTest ("DblFn1 #104", NumberFormat, -1.79769313486231E+307, "E", "-1,797693E+307");  
338                         FormatStringTest ("DblFn1 #105", NumberFormat, -1.79769313486231E+307, "E0", "-2E+307");  
339                         FormatStringTest ("DblFn1 #106", NumberFormat, -1.79769313486231E+307, "E1", "-1,8E+307");  
340                         FormatStringTest ("DblFn1 #107", NumberFormat, -1.79769313486231E+307, "E3", "-1,798E+307");  
341                         FormatStringTest ("DblFn1 #108", NumberFormat, -1.79769313486231E+307, "E4", "-1,7977E+307");  
342                         FormatStringTest ("DblFn1 #109", NumberFormat, -1.79769313486231E+307, "E6", "-1,797693E+307");  
343                         FormatStringTest ("DblFn1 #110", NumberFormat, -1.79769313486231E+307, "E9", "-1,797693135E+307");  
344                         FormatStringTest ("DblFn1 #112", NumberFormat, -1.79769313486231E+307, "F", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000");  
345                         FormatStringTest ("DblFn1 #113", NumberFormat, -1.79769313486231E+307, "F0", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");  
346                         FormatStringTest ("DblFn1 #114", NumberFormat, -1.79769313486231E+307, "F1", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0");  
347                         FormatStringTest ("DblFn1 #115", NumberFormat, -1.79769313486231E+307, "F3", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000");  
348                         FormatStringTest ("DblFn1 #116", NumberFormat, -1.79769313486231E+307, "F4", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000");  
349                         FormatStringTest ("DblFn1 #117", NumberFormat, -1.79769313486231E+307, "F6", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000");  
350                         FormatStringTest ("DblFn1 #118", NumberFormat, -1.79769313486231E+307, "F9", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000");  
351                         FormatStringTest ("DblFn1 #119", NumberFormat, -1.79769313486231E+307, "F67", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000");  
352                         FormatStringTest ("DblFn1 #120", NumberFormat, -1.79769313486231E+307, "G", "-1,79769313486231E+307");  
353                         FormatStringTest ("DblFn1 #121", NumberFormat, -1.79769313486231E+307, "G0", "-1,79769313486231E+307");  
354                         FormatStringTest ("DblFn1 #122", NumberFormat, -1.79769313486231E+307, "G1", "-2E+307");  
355                         FormatStringTest ("DblFn1 #123", NumberFormat, -1.79769313486231E+307, "G3", "-1,8E+307");  
356                         FormatStringTest ("DblFn1 #124", NumberFormat, -1.79769313486231E+307, "G4", "-1,798E+307");  
357                         FormatStringTest ("DblFn1 #125", NumberFormat, -1.79769313486231E+307, "G6", "-1,79769E+307");  
358                         FormatStringTest ("DblFn1 #126", NumberFormat, -1.79769313486231E+307, "G9", "-1,79769313E+307");  
359                         FormatStringTest ("DblFn1 #127", NumberFormat, -1.79769313486231E+307, "G67", "-1,79769313486231E+307");  
360                         FormatStringTest ("DblFn1 #128", NumberFormat, -1.79769313486231E+307, "N", "- 17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,00000");  
361                         FormatStringTest ("DblFn1 #129", NumberFormat, -1.79769313486231E+307, "N0", "- 17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000");  
362                         FormatStringTest ("DblFn1 #130", NumberFormat, -1.79769313486231E+307, "N1", "- 17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0");  
363                         FormatStringTest ("DblFn1 #131", NumberFormat, -1.79769313486231E+307, "N3", "- 17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000");  
364                         FormatStringTest ("DblFn1 #132", NumberFormat, -1.79769313486231E+307, "N4", "- 17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000");  
365                         FormatStringTest ("DblFn1 #133", NumberFormat, -1.79769313486231E+307, "N6", "- 17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000000");  
366                         FormatStringTest ("DblFn1 #134", NumberFormat, -1.79769313486231E+307, "N9", "- 17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,000000000");  
367                         FormatStringTest ("DblFn1 #135", NumberFormat, -1.79769313486231E+307, "N67", "- 17.976.931.348.623.100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000000000000000000000000000000000000000000000000000000000000000000");  
368                         FormatStringTest ("DblFn1 #144", NumberFormat, 1E-10, "C", "0,00 EUR");  
369                         FormatStringTest ("DblFn1 #145", NumberFormat, 1E-10, "C0", "0 EUR");  
370                         FormatStringTest ("DblFn1 #146", NumberFormat, 1E-10, "C1", "0,0 EUR");  
371                         FormatStringTest ("DblFn1 #147", NumberFormat, 1E-10, "C3", "0,000 EUR");  
372                         FormatStringTest ("DblFn1 #148", NumberFormat, 1E-10, "C4", "0,0000 EUR");  
373                         FormatStringTest ("DblFn1 #149", NumberFormat, 1E-10, "C6", "0,000000 EUR");  
374                         FormatStringTest ("DblFn1 #150", NumberFormat, 1E-10, "C9", "0,000000000 EUR");  
375                         FormatStringTest ("DblFn1 #151", NumberFormat, 1E-10, "C67", "0,0000000001000000000000000000000000000000000000000000000000000000000 EUR");  
376                         FormatStringTest ("DblFn1 #159", NumberFormat, 1E-10, "E67", "1,0000000000000000000000000000000000000000000000000000000000000000000E-010");  
377                         FormatStringTest ("DblFn1 #160", NumberFormat, 1E-10, "F", "0,00000");  
378                         FormatStringTest ("DblFn1 #161", NumberFormat, 1E-10, "F0", "0");  
379                         FormatStringTest ("DblFn1 #162", NumberFormat, 1E-10, "F1", "0,0");  
380                         FormatStringTest ("DblFn1 #163", NumberFormat, 1E-10, "F3", "0,000");  
381                         FormatStringTest ("DblFn1 #164", NumberFormat, 1E-10, "F4", "0,0000");  
382                         FormatStringTest ("DblFn1 #165", NumberFormat, 1E-10, "F6", "0,000000");  
383                         FormatStringTest ("DblFn1 #166", NumberFormat, 1E-10, "F9", "0,000000000");  
384                         FormatStringTest ("DblFn1 #167", NumberFormat, 1E-10, "F67", "0,0000000001000000000000000000000000000000000000000000000000000000000");  
385                         FormatStringTest ("DblFn1 #168", NumberFormat, 1E-10, "G", "1E-10");  
386                         FormatStringTest ("DblFn1 #169", NumberFormat, 1E-10, "G0", "1E-10");  
387                         FormatStringTest ("DblFn1 #175", NumberFormat, 1E-10, "G67", "1E-10");  
388                         FormatStringTest ("DblFn1 #176", NumberFormat, 1E-10, "N", "0,00000");  
389                         FormatStringTest ("DblFn1 #177", NumberFormat, 1E-10, "N0", "0");  
390                         FormatStringTest ("DblFn1 #178", NumberFormat, 1E-10, "N1", "0,0");  
391                         FormatStringTest ("DblFn1 #179", NumberFormat, 1E-10, "N3", "0,000");  
392                         FormatStringTest ("DblFn1 #180", NumberFormat, 1E-10, "N4", "0,0000");  
393                         FormatStringTest ("DblFn1 #181", NumberFormat, 1E-10, "N6", "0,000000");  
394                         FormatStringTest ("DblFn1 #182", NumberFormat, 1E-10, "N9", "0,000000000");  
395                         FormatStringTest ("DblFn1 #183", NumberFormat, 1E-10, "N67", "0,0000000001000000000000000000000000000000000000000000000000000000000");  
396                         FormatStringTest ("DblFn1 #184", NumberFormat, 1E-10, "P", "0,00000 %");  
397                         FormatStringTest ("DblFn1 #185", NumberFormat, 1E-10, "P0", "0 %");  
398                         FormatStringTest ("DblFn1 #186", NumberFormat, 1E-10, "P1", "0,0 %");  
399                         FormatStringTest ("DblFn1 #187", NumberFormat, 1E-10, "P3", "0,000 %");  
400                         FormatStringTest ("DblFn1 #188", NumberFormat, 1E-10, "P4", "0,0000 %");  
401                         FormatStringTest ("DblFn1 #189", NumberFormat, 1E-10, "P6", "0,000000 %");  
402                         FormatStringTest ("DblFn1 #190", NumberFormat, 1E-10, "P9", "0,000000010 %");  
403                         FormatStringTest ("DblFn1 #191", NumberFormat, 1E-10, "P67", "0,0000000100000000000000000000000000000000000000000000000000000000000 %");  
404                         FormatStringTest ("DblFn1 #192", NumberFormat, 4.94065645841247E-324, "C", "0,00 EUR");  
405                         FormatStringTest ("DblFn1 #193", NumberFormat, 4.94065645841247E-324, "C0", "0 EUR");  
406                         FormatStringTest ("DblFn1 #194", NumberFormat, 4.94065645841247E-324, "C1", "0,0 EUR");  
407                         FormatStringTest ("DblFn1 #195", NumberFormat, 4.94065645841247E-324, "C3", "0,000 EUR");  
408                         FormatStringTest ("DblFn1 #196", NumberFormat, 4.94065645841247E-324, "C4", "0,0000 EUR");  
409                         FormatStringTest ("DblFn1 #197", NumberFormat, 4.94065645841247E-324, "C6", "0,000000 EUR");  
410                         FormatStringTest ("DblFn1 #198", NumberFormat, 4.94065645841247E-324, "C9", "0,000000000 EUR");  
411                         FormatStringTest ("DblFn1 #199", NumberFormat, 4.94065645841247E-324, "C67", "0,0000000000000000000000000000000000000000000000000000000000000000000 EUR");  
412                         FormatStringTest ("DblFn1 #208", NumberFormat, 4.94065645841247E-324, "F", "0,00000");  
413                         FormatStringTest ("DblFn1 #209", NumberFormat, 4.94065645841247E-324, "F0", "0");  
414                         FormatStringTest ("DblFn1 #210", NumberFormat, 4.94065645841247E-324, "F1", "0,0");  
415                         FormatStringTest ("DblFn1 #211", NumberFormat, 4.94065645841247E-324, "F3", "0,000");  
416                         FormatStringTest ("DblFn1 #212", NumberFormat, 4.94065645841247E-324, "F4", "0,0000");  
417                         FormatStringTest ("DblFn1 #213", NumberFormat, 4.94065645841247E-324, "F6", "0,000000");  
418                         FormatStringTest ("DblFn1 #214", NumberFormat, 4.94065645841247E-324, "F9", "0,000000000");  
419                         FormatStringTest ("DblFn1 #215", NumberFormat, 4.94065645841247E-324, "F67", "0,0000000000000000000000000000000000000000000000000000000000000000000");  
420                         FormatStringTest ("DblFn1 #216", NumberFormat, 4.94065645841247E-324, "G", "4,94065645841247E-324");  
421                         FormatStringTest ("DblFn1 #217", NumberFormat, 4.94065645841247E-324, "G0", "4,94065645841247E-324");  
422                         FormatStringTest ("DblFn1 #224", NumberFormat, 4.94065645841247E-324, "N", "0,00000");  
423                         FormatStringTest ("DblFn1 #225", NumberFormat, 4.94065645841247E-324, "N0", "0");  
424                         FormatStringTest ("DblFn1 #226", NumberFormat, 4.94065645841247E-324, "N1", "0,0");  
425                         FormatStringTest ("DblFn1 #227", NumberFormat, 4.94065645841247E-324, "N3", "0,000");  
426                         FormatStringTest ("DblFn1 #228", NumberFormat, 4.94065645841247E-324, "N4", "0,0000");  
427                         FormatStringTest ("DblFn1 #229", NumberFormat, 4.94065645841247E-324, "N6", "0,000000");  
428                         FormatStringTest ("DblFn1 #230", NumberFormat, 4.94065645841247E-324, "N9", "0,000000000");  
429                         FormatStringTest ("DblFn1 #231", NumberFormat, 4.94065645841247E-324, "N67", "0,0000000000000000000000000000000000000000000000000000000000000000000");  
430                         FormatStringTest ("DblFn1 #232", NumberFormat, 4.94065645841247E-324, "P", "0,00000 %");  
431                         FormatStringTest ("DblFn1 #233", NumberFormat, 4.94065645841247E-324, "P0", "0 %");  
432                         FormatStringTest ("DblFn1 #234", NumberFormat, 4.94065645841247E-324, "P1", "0,0 %");  
433                         FormatStringTest ("DblFn1 #235", NumberFormat, 4.94065645841247E-324, "P3", "0,000 %");  
434                         FormatStringTest ("DblFn1 #236", NumberFormat, 4.94065645841247E-324, "P4", "0,0000 %");  
435                         FormatStringTest ("DblFn1 #237", NumberFormat, 4.94065645841247E-324, "P6", "0,000000 %");  
436                         FormatStringTest ("DblFn1 #238", NumberFormat, 4.94065645841247E-324, "P9", "0,000000000 %");  
437                         FormatStringTest ("DblFn1 #239", NumberFormat, 4.94065645841247E-324, "P67", "0,0000000000000000000000000000000000000000000000000000000000000000000 %");  
438                         FormatStringTest ("DblFn1 #240", NumberFormat, Double.NaN,  "C", "NaN");  
439                         FormatStringTest ("DblFn1 #241", NumberFormat, Double.NaN,  "C0", "NaN");  
440                         FormatStringTest ("DblFn1 #242", NumberFormat, Double.NaN,  "C1", "NaN");  
441                         FormatStringTest ("DblFn1 #243", NumberFormat, Double.NaN,  "C3", "NaN");  
442                         FormatStringTest ("DblFn1 #244", NumberFormat, Double.NaN,  "C4", "NaN");  
443                         FormatStringTest ("DblFn1 #245", NumberFormat, Double.NaN,  "C6", "NaN");  
444                         FormatStringTest ("DblFn1 #246", NumberFormat, Double.NaN,  "C9", "NaN");  
445                         FormatStringTest ("DblFn1 #247", NumberFormat, Double.NaN,  "C67", "NaN");  
446                         FormatStringTest ("DblFn1 #248", NumberFormat, Double.NaN,  "E", "NaN");  
447                         FormatStringTest ("DblFn1 #249", NumberFormat, Double.NaN,  "E0", "NaN");  
448                         FormatStringTest ("DblFn1 #250", NumberFormat, Double.NaN,  "E1", "NaN");  
449                         FormatStringTest ("DblFn1 #251", NumberFormat, Double.NaN,  "E3", "NaN");  
450                         FormatStringTest ("DblFn1 #252", NumberFormat, Double.NaN,  "E4", "NaN");  
451                         FormatStringTest ("DblFn1 #253", NumberFormat, Double.NaN,  "E6", "NaN");  
452                         FormatStringTest ("DblFn1 #254", NumberFormat, Double.NaN,  "E9", "NaN");  
453                         FormatStringTest ("DblFn1 #255", NumberFormat, Double.NaN,  "E67", "NaN");  
454                         FormatStringTest ("DblFn1 #256", NumberFormat, Double.NaN,  "F", "NaN");  
455                         FormatStringTest ("DblFn1 #257", NumberFormat, Double.NaN,  "F0", "NaN");  
456                         FormatStringTest ("DblFn1 #258", NumberFormat, Double.NaN,  "F1", "NaN");  
457                         FormatStringTest ("DblFn1 #259", NumberFormat, Double.NaN,  "F3", "NaN");  
458                         FormatStringTest ("DblFn1 #260", NumberFormat, Double.NaN,  "F4", "NaN");  
459                         FormatStringTest ("DblFn1 #261", NumberFormat, Double.NaN,  "F6", "NaN");  
460                         FormatStringTest ("DblFn1 #262", NumberFormat, Double.NaN,  "F9", "NaN");  
461                         FormatStringTest ("DblFn1 #263", NumberFormat, Double.NaN,  "F67", "NaN");  
462                         FormatStringTest ("DblFn1 #264", NumberFormat, Double.NaN,  "G", "NaN");  
463                         FormatStringTest ("DblFn1 #265", NumberFormat, Double.NaN,  "G0", "NaN");  
464                         FormatStringTest ("DblFn1 #266", NumberFormat, Double.NaN,  "G1", "NaN");  
465                         FormatStringTest ("DblFn1 #267", NumberFormat, Double.NaN,  "G3", "NaN");  
466                         FormatStringTest ("DblFn1 #268", NumberFormat, Double.NaN,  "G4", "NaN");  
467                         FormatStringTest ("DblFn1 #269", NumberFormat, Double.NaN,  "G6", "NaN");  
468                         FormatStringTest ("DblFn1 #270", NumberFormat, Double.NaN,  "G9", "NaN");  
469                         FormatStringTest ("DblFn1 #271", NumberFormat, Double.NaN,  "G67", "NaN");  
470                         FormatStringTest ("DblFn1 #272", NumberFormat, Double.NaN,  "N", "NaN");  
471                         FormatStringTest ("DblFn1 #273", NumberFormat, Double.NaN,  "N0", "NaN");  
472                         FormatStringTest ("DblFn1 #274", NumberFormat, Double.NaN,  "N1", "NaN");  
473                         FormatStringTest ("DblFn1 #275", NumberFormat, Double.NaN,  "N3", "NaN");  
474                         FormatStringTest ("DblFn1 #276", NumberFormat, Double.NaN,  "N4", "NaN");  
475                         FormatStringTest ("DblFn1 #277", NumberFormat, Double.NaN,  "N6", "NaN");  
476                         FormatStringTest ("DblFn1 #278", NumberFormat, Double.NaN,  "N9", "NaN");  
477                         FormatStringTest ("DblFn1 #279", NumberFormat, Double.NaN,  "N67", "NaN");  
478                         FormatStringTest ("DblFn1 #280", NumberFormat, Double.NaN,  "P", "NaN");  
479                         FormatStringTest ("DblFn1 #281", NumberFormat, Double.NaN,  "P0", "NaN");  
480                         FormatStringTest ("DblFn1 #282", NumberFormat, Double.NaN,  "P1", "NaN");  
481                         FormatStringTest ("DblFn1 #283", NumberFormat, Double.NaN,  "P3", "NaN");  
482                         FormatStringTest ("DblFn1 #284", NumberFormat, Double.NaN,  "P4", "NaN");  
483                         FormatStringTest ("DblFn1 #285", NumberFormat, Double.NaN,  "P6", "NaN");  
484                         FormatStringTest ("DblFn1 #286", NumberFormat, Double.NaN,  "P9", "NaN");  
485                         FormatStringTest ("DblFn1 #287", NumberFormat, Double.NaN,  "P67", "NaN"); 
486                         FormatStringTest ("DblFn1 #288", NumberFormat, Double.NegativeInfinity, "C", "-Infinity");  
487                         FormatStringTest ("DblFn1 #289", NumberFormat, Double.NegativeInfinity, "C0", "-Infinity");  
488                         FormatStringTest ("DblFn1 #290", NumberFormat, Double.NegativeInfinity, "C1", "-Infinity");  
489                         FormatStringTest ("DblFn1 #291", NumberFormat, Double.NegativeInfinity, "C3", "-Infinity");  
490                         FormatStringTest ("DblFn1 #292", NumberFormat, Double.NegativeInfinity, "C4", "-Infinity");  
491                         FormatStringTest ("DblFn1 #293", NumberFormat, Double.NegativeInfinity, "C6", "-Infinity");  
492                         FormatStringTest ("DblFn1 #294", NumberFormat, Double.NegativeInfinity, "C9", "-Infinity");  
493                         FormatStringTest ("DblFn1 #295", NumberFormat, Double.NegativeInfinity, "C67", "-Infinity");  
494                         FormatStringTest ("DblFn1 #296", NumberFormat, Double.NegativeInfinity, "E", "-Infinity");  
495                         FormatStringTest ("DblFn1 #297", NumberFormat, Double.NegativeInfinity, "E0", "-Infinity");  
496                         FormatStringTest ("DblFn1 #298", NumberFormat, Double.NegativeInfinity, "E1", "-Infinity");  
497                         FormatStringTest ("DblFn1 #299", NumberFormat, Double.NegativeInfinity, "E3", "-Infinity");  
498                         FormatStringTest ("DblFn1 #300", NumberFormat, Double.NegativeInfinity, "E4", "-Infinity");  
499                         FormatStringTest ("DblFn1 #301", NumberFormat, Double.NegativeInfinity, "E6", "-Infinity");  
500                         FormatStringTest ("DblFn1 #302", NumberFormat, Double.NegativeInfinity, "E9", "-Infinity");  
501                         FormatStringTest ("DblFn1 #303", NumberFormat, Double.NegativeInfinity, "E67", "-Infinity");  
502                         FormatStringTest ("DblFn1 #304", NumberFormat, Double.NegativeInfinity, "F", "-Infinity");  
503                         FormatStringTest ("DblFn1 #305", NumberFormat, Double.NegativeInfinity, "F0", "-Infinity");  
504                         FormatStringTest ("DblFn1 #306", NumberFormat, Double.NegativeInfinity, "F1", "-Infinity");  
505                         FormatStringTest ("DblFn1 #307", NumberFormat, Double.NegativeInfinity, "F3", "-Infinity");  
506                         FormatStringTest ("DblFn1 #308", NumberFormat, Double.NegativeInfinity, "F4", "-Infinity");  
507                         FormatStringTest ("DblFn1 #309", NumberFormat, Double.NegativeInfinity, "F6", "-Infinity");  
508                         FormatStringTest ("DblFn1 #310", NumberFormat, Double.NegativeInfinity, "F9", "-Infinity");  
509                         FormatStringTest ("DblFn1 #311", NumberFormat, Double.NegativeInfinity, "F67", "-Infinity");  
510                         FormatStringTest ("DblFn1 #312", NumberFormat, Double.NegativeInfinity, "G", "-Infinity");  
511                         FormatStringTest ("DblFn1 #313", NumberFormat, Double.NegativeInfinity, "G0", "-Infinity");  
512                         FormatStringTest ("DblFn1 #314", NumberFormat, Double.NegativeInfinity, "G1", "-Infinity");  
513                         FormatStringTest ("DblFn1 #315", NumberFormat, Double.NegativeInfinity, "G3", "-Infinity");  
514                         FormatStringTest ("DblFn1 #316", NumberFormat, Double.NegativeInfinity, "G4", "-Infinity");  
515                         FormatStringTest ("DblFn1 #317", NumberFormat, Double.NegativeInfinity, "G6", "-Infinity");  
516                         FormatStringTest ("DblFn1 #318", NumberFormat, Double.NegativeInfinity, "G9", "-Infinity");  
517                         FormatStringTest ("DblFn1 #319", NumberFormat, Double.NegativeInfinity, "G67", "-Infinity");  
518                         FormatStringTest ("DblFn1 #320", NumberFormat, Double.NegativeInfinity, "N", "-Infinity");  
519                         FormatStringTest ("DblFn1 #321", NumberFormat, Double.NegativeInfinity, "N0", "-Infinity");  
520                         FormatStringTest ("DblFn1 #322", NumberFormat, Double.NegativeInfinity, "N1", "-Infinity");  
521                         FormatStringTest ("DblFn1 #323", NumberFormat, Double.NegativeInfinity, "N3", "-Infinity");  
522                         FormatStringTest ("DblFn1 #324", NumberFormat, Double.NegativeInfinity, "N4", "-Infinity");  
523                         FormatStringTest ("DblFn1 #325", NumberFormat, Double.NegativeInfinity, "N6", "-Infinity");  
524                         FormatStringTest ("DblFn1 #326", NumberFormat, Double.NegativeInfinity, "N9", "-Infinity");  
525                         FormatStringTest ("DblFn1 #327", NumberFormat, Double.NegativeInfinity, "N67", "-Infinity");  
526                         FormatStringTest ("DblFn1 #328", NumberFormat, Double.NegativeInfinity, "P", "-Infinity");  
527                         FormatStringTest ("DblFn1 #329", NumberFormat, Double.NegativeInfinity, "P0", "-Infinity");  
528                         FormatStringTest ("DblFn1 #330", NumberFormat, Double.NegativeInfinity, "P1", "-Infinity");  
529                         FormatStringTest ("DblFn1 #331", NumberFormat, Double.NegativeInfinity, "P3", "-Infinity");  
530                         FormatStringTest ("DblFn1 #332", NumberFormat, Double.NegativeInfinity, "P4", "-Infinity");  
531                         FormatStringTest ("DblFn1 #333", NumberFormat, Double.NegativeInfinity, "P6", "-Infinity");  
532                         FormatStringTest ("DblFn1 #334", NumberFormat, Double.NegativeInfinity, "P9", "-Infinity");  
533                         FormatStringTest ("DblFn1 #335", NumberFormat, Double.NegativeInfinity, "P67", "-Infinity");  
534                         FormatStringTest ("DblFn1 #336", NumberFormat, Double.PositiveInfinity, "C", "Infinity");  
535                         FormatStringTest ("DblFn1 #337", NumberFormat, Double.PositiveInfinity, "C0", "Infinity");  
536                         FormatStringTest ("DblFn1 #338", NumberFormat, Double.PositiveInfinity, "C1", "Infinity");  
537                         FormatStringTest ("DblFn1 #339", NumberFormat, Double.PositiveInfinity, "C3", "Infinity");  
538                         FormatStringTest ("DblFn1 #340", NumberFormat, Double.PositiveInfinity, "C4", "Infinity");  
539                         FormatStringTest ("DblFn1 #341", NumberFormat, Double.PositiveInfinity, "C6", "Infinity");  
540                         FormatStringTest ("DblFn1 #342", NumberFormat, Double.PositiveInfinity, "C9", "Infinity");  
541                         FormatStringTest ("DblFn1 #343", NumberFormat, Double.PositiveInfinity, "C67", "Infinity");  
542                         FormatStringTest ("DblFn1 #344", NumberFormat, Double.PositiveInfinity, "E", "Infinity");  
543                         FormatStringTest ("DblFn1 #345", NumberFormat, Double.PositiveInfinity, "E0", "Infinity");  
544                         FormatStringTest ("DblFn1 #346", NumberFormat, Double.PositiveInfinity, "E1", "Infinity");  
545                         FormatStringTest ("DblFn1 #347", NumberFormat, Double.PositiveInfinity, "E3", "Infinity");  
546                         FormatStringTest ("DblFn1 #348", NumberFormat, Double.PositiveInfinity, "E4", "Infinity");  
547                         FormatStringTest ("DblFn1 #349", NumberFormat, Double.PositiveInfinity, "E6", "Infinity");  
548                         FormatStringTest ("DblFn1 #350", NumberFormat, Double.PositiveInfinity, "E9", "Infinity");  
549                         FormatStringTest ("DblFn1 #351", NumberFormat, Double.PositiveInfinity, "E67", "Infinity");  
550                         FormatStringTest ("DblFn1 #352", NumberFormat, Double.PositiveInfinity, "F", "Infinity");  
551                         FormatStringTest ("DblFn1 #353", NumberFormat, Double.PositiveInfinity, "F0", "Infinity");  
552                         FormatStringTest ("DblFn1 #354", NumberFormat, Double.PositiveInfinity, "F1", "Infinity");  
553                         FormatStringTest ("DblFn1 #355", NumberFormat, Double.PositiveInfinity, "F3", "Infinity");  
554                         FormatStringTest ("DblFn1 #356", NumberFormat, Double.PositiveInfinity, "F4", "Infinity");  
555                         FormatStringTest ("DblFn1 #357", NumberFormat, Double.PositiveInfinity, "F6", "Infinity");  
556                         FormatStringTest ("DblFn1 #358", NumberFormat, Double.PositiveInfinity, "F9", "Infinity");  
557                         FormatStringTest ("DblFn1 #359", NumberFormat, Double.PositiveInfinity, "F67", "Infinity");  
558                         FormatStringTest ("DblFn1 #360", NumberFormat, Double.PositiveInfinity, "G", "Infinity");  
559                         FormatStringTest ("DblFn1 #361", NumberFormat, Double.PositiveInfinity, "G0", "Infinity");  
560                         FormatStringTest ("DblFn1 #362", NumberFormat, Double.PositiveInfinity, "G1", "Infinity");  
561                         FormatStringTest ("DblFn1 #363", NumberFormat, Double.PositiveInfinity, "G3", "Infinity");  
562                         FormatStringTest ("DblFn1 #364", NumberFormat, Double.PositiveInfinity, "G4", "Infinity");  
563                         FormatStringTest ("DblFn1 #365", NumberFormat, Double.PositiveInfinity, "G6", "Infinity");  
564                         FormatStringTest ("DblFn1 #366", NumberFormat, Double.PositiveInfinity, "G9", "Infinity");  
565                         FormatStringTest ("DblFn1 #367", NumberFormat, Double.PositiveInfinity, "G67", "Infinity");  
566                         FormatStringTest ("DblFn1 #368", NumberFormat, Double.PositiveInfinity, "N", "Infinity");  
567                         FormatStringTest ("DblFn1 #369", NumberFormat, Double.PositiveInfinity, "N0", "Infinity");  
568                         FormatStringTest ("DblFn1 #370", NumberFormat, Double.PositiveInfinity, "N1", "Infinity");  
569                         FormatStringTest ("DblFn1 #371", NumberFormat, Double.PositiveInfinity, "N3", "Infinity");  
570                         FormatStringTest ("DblFn1 #372", NumberFormat, Double.PositiveInfinity, "N4", "Infinity");  
571                         FormatStringTest ("DblFn1 #373", NumberFormat, Double.PositiveInfinity, "N6", "Infinity");  
572                         FormatStringTest ("DblFn1 #374", NumberFormat, Double.PositiveInfinity, "N9", "Infinity");  
573                         FormatStringTest ("DblFn1 #375", NumberFormat, Double.PositiveInfinity, "N67", "Infinity");  
574                         FormatStringTest ("DblFn1 #376", NumberFormat, Double.PositiveInfinity, "P", "Infinity");  
575                         FormatStringTest ("DblFn1 #377", NumberFormat, Double.PositiveInfinity, "P0", "Infinity");  
576                         FormatStringTest ("DblFn1 #378", NumberFormat, Double.PositiveInfinity, "P1", "Infinity");  
577                         FormatStringTest ("DblFn1 #379", NumberFormat, Double.PositiveInfinity, "P3", "Infinity");  
578                         FormatStringTest ("DblFn1 #380", NumberFormat, Double.PositiveInfinity, "P4", "Infinity");  
579                         FormatStringTest ("DblFn1 #381", NumberFormat, Double.PositiveInfinity, "P6", "Infinity");  
580                         FormatStringTest ("DblFn1 #382", NumberFormat, Double.PositiveInfinity, "P9", "Infinity");  
581                         FormatStringTest ("DblFn1 #383", NumberFormat, Double.PositiveInfinity, "P67", "Infinity");  
582                 }
583                 [Test]
584                 public void TestFormatStringsN2()
585                 {
586                         NumberFormatInfo NumberFormat = GetNumberFormat2();                     
587                         
588                         FormatStringTest ("DblFn2 #0", NumberFormat, 99999.9999996, "C", "100,000.0$");
589                         FormatStringTest ("DblFn2 #1", NumberFormat, 99999.9999996, "C0", "100,000$");  
590                         FormatStringTest ("DblFn2 #2", NumberFormat, 99999.9999996, "C1", "100,000.0$");  
591                         FormatStringTest ("DblFn2 #3", NumberFormat, 99999.9999996, "C3", "100,000.000$");  
592                         FormatStringTest ("DblFn2 #4", NumberFormat, 99999.9999996, "C4", "100,000.0000$");  
593                         FormatStringTest ("DblFn2 #5", NumberFormat, 99999.9999996, "C6", "100,000.000000$");  
594                         FormatStringTest ("DblFn2 #6", NumberFormat, 99999.9999996, "C9", "99,999.999999600$");  
595                         FormatStringTest ("DblFn2 #7", NumberFormat, 99999.9999996, "C67", "99,999.9999996000000000000000000000000000000000000000000000000000000000000$");  
596                         FormatStringTest ("DblFn2 #8", NumberFormat, 99999.9999996, "E", "1.000000E+005");  
597                         FormatStringTest ("DblFn2 #9", NumberFormat, 99999.9999996, "E0", "1E+005");  
598                         FormatStringTest ("DblFn2 #10", NumberFormat, 99999.9999996, "E1", "1.0E+005");  
599                         FormatStringTest ("DblFn2 #11", NumberFormat, 99999.9999996, "E3", "1.000E+005");  
600                         FormatStringTest ("DblFn2 #12", NumberFormat, 99999.9999996, "E4", "1.0000E+005");  
601                         FormatStringTest ("DblFn2 #13", NumberFormat, 99999.9999996, "E6", "1.000000E+005");  
602                         FormatStringTest ("DblFn2 #14", NumberFormat, 99999.9999996, "E9", "1.000000000E+005");  
603                         FormatStringTest ("DblFn2 #16", NumberFormat, 99999.9999996, "F", "100000.00");  
604                         FormatStringTest ("DblFn2 #17", NumberFormat, 99999.9999996, "F0", "100000");  
605                         FormatStringTest ("DblFn2 #18", NumberFormat, 99999.9999996, "F1", "100000.0");  
606                         FormatStringTest ("DblFn2 #19", NumberFormat, 99999.9999996, "F3", "100000.000");  
607                         FormatStringTest ("DblFn2 #20", NumberFormat, 99999.9999996, "F4", "100000.0000");  
608                         FormatStringTest ("DblFn2 #21", NumberFormat, 99999.9999996, "F6", "100000.000000");  
609                         FormatStringTest ("DblFn2 #22", NumberFormat, 99999.9999996, "F9", "99999.999999600");  
610                         FormatStringTest ("DblFn2 #23", NumberFormat, 99999.9999996, "F67", "99999.9999996000000000000000000000000000000000000000000000000000000000000");  
611                         FormatStringTest ("DblFn2 #24", NumberFormat, 99999.9999996, "G", "99999.9999996");  
612                         FormatStringTest ("DblFn2 #25", NumberFormat, 99999.9999996, "G0", "99999.9999996");  
613                         FormatStringTest ("DblFn2 #26", NumberFormat, 99999.9999996, "G1", "1E+05");  
614                         FormatStringTest ("DblFn2 #27", NumberFormat, 99999.9999996, "G3", "1E+05");  
615                         FormatStringTest ("DblFn2 #28", NumberFormat, 99999.9999996, "G4", "1E+05");  
616                         FormatStringTest ("DblFn2 #29", NumberFormat, 99999.9999996, "G6", "100000");  
617                         FormatStringTest ("DblFn2 #30", NumberFormat, 99999.9999996, "G9", "100000");  
618                         FormatStringTest ("DblFn2 #32", NumberFormat, 99999.9999996, "N", "100,000.00");  
619                         FormatStringTest ("DblFn2 #33", NumberFormat, 99999.9999996, "N0", "100,000");  
620                         FormatStringTest ("DblFn2 #34", NumberFormat, 99999.9999996, "N1", "100,000.0");  
621                         FormatStringTest ("DblFn2 #35", NumberFormat, 99999.9999996, "N3", "100,000.000");  
622                         FormatStringTest ("DblFn2 #36", NumberFormat, 99999.9999996, "N4", "100,000.0000");  
623                         FormatStringTest ("DblFn2 #37", NumberFormat, 99999.9999996, "N6", "100,000.000000");  
624                         FormatStringTest ("DblFn2 #38", NumberFormat, 99999.9999996, "N9", "99,999.999999600");  
625                         FormatStringTest ("DblFn2 #39", NumberFormat, 99999.9999996, "N67", "99,999.9999996000000000000000000000000000000000000000000000000000000000000");  
626                         FormatStringTest ("DblFn2 #40", NumberFormat, 99999.9999996, "P", "##10,000,000.00");  
627                         FormatStringTest ("DblFn2 #41", NumberFormat, 99999.9999996, "P0", "##10,000,000");  
628                         FormatStringTest ("DblFn2 #42", NumberFormat, 99999.9999996, "P1", "##10,000,000.0");  
629                         FormatStringTest ("DblFn2 #43", NumberFormat, 99999.9999996, "P3", "##10,000,000.000");  
630                         FormatStringTest ("DblFn2 #44", NumberFormat, 99999.9999996, "P4", "##10,000,000.0000");  
631                         FormatStringTest ("DblFn2 #45", NumberFormat, 99999.9999996, "P6", "##9,999,999.999960");  
632                         FormatStringTest ("DblFn2 #46", NumberFormat, 99999.9999996, "P9", "##9,999,999.999960000");  
633                         FormatStringTest ("DblFn2 #47", NumberFormat, 99999.9999996, "P67", "##9,999,999.9999600000000000000000000000000000000000000000000000000000000000000");  
634                         FormatStringTest ("DblFn2 #48", NumberFormat, 1.79769313486231E+307, "C", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0$");  
635                         FormatStringTest ("DblFn2 #49", NumberFormat, 1.79769313486231E+307, "C0", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000$");  
636                         FormatStringTest ("DblFn2 #50", NumberFormat, 1.79769313486231E+307, "C1", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0$");  
637                         FormatStringTest ("DblFn2 #51", NumberFormat, 1.79769313486231E+307, "C3", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000$");  
638                         FormatStringTest ("DblFn2 #52", NumberFormat, 1.79769313486231E+307, "C4", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0000$");  
639                         FormatStringTest ("DblFn2 #53", NumberFormat, 1.79769313486231E+307, "C6", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000000$");  
640                         FormatStringTest ("DblFn2 #54", NumberFormat, 1.79769313486231E+307, "C9", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000000000$");  
641                         FormatStringTest ("DblFn2 #55", NumberFormat, 1.79769313486231E+307, "C67", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0000000000000000000000000000000000000000000000000000000000000000000$");  
642                         FormatStringTest ("DblFn2 #56", NumberFormat, 1.79769313486231E+307, "E", "1.797693E+307");  
643                         FormatStringTest ("DblFn2 #57", NumberFormat, 1.79769313486231E+307, "E0", "2E+307");  
644                         FormatStringTest ("DblFn2 #58", NumberFormat, 1.79769313486231E+307, "E1", "1.8E+307");  
645                         FormatStringTest ("DblFn2 #59", NumberFormat, 1.79769313486231E+307, "E3", "1.798E+307");  
646                         FormatStringTest ("DblFn2 #60", NumberFormat, 1.79769313486231E+307, "E4", "1.7977E+307");  
647                         FormatStringTest ("DblFn2 #61", NumberFormat, 1.79769313486231E+307, "E6", "1.797693E+307");  
648                         FormatStringTest ("DblFn2 #62", NumberFormat, 1.79769313486231E+307, "E9", "1.797693135E+307");  
649                         FormatStringTest ("DblFn2 #64", NumberFormat, 1.79769313486231E+307, "F", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.00");  
650                         FormatStringTest ("DblFn2 #65", NumberFormat, 1.79769313486231E+307, "F0", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");  
651                         FormatStringTest ("DblFn2 #66", NumberFormat, 1.79769313486231E+307, "F1", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0");  
652                         FormatStringTest ("DblFn2 #67", NumberFormat, 1.79769313486231E+307, "F3", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000");  
653                         FormatStringTest ("DblFn2 #68", NumberFormat, 1.79769313486231E+307, "F4", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000");  
654                         FormatStringTest ("DblFn2 #69", NumberFormat, 1.79769313486231E+307, "F6", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000");  
655                         FormatStringTest ("DblFn2 #70", NumberFormat, 1.79769313486231E+307, "F9", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000000");  
656                         FormatStringTest ("DblFn2 #71", NumberFormat, 1.79769313486231E+307, "F67", "17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000000000000000000000000000000000000000000000000000000000000");  
657                         FormatStringTest ("DblFn2 #72", NumberFormat, 1.79769313486231E+307, "G", "1.79769313486231E+307");  
658                         FormatStringTest ("DblFn2 #73", NumberFormat, 1.79769313486231E+307, "G0", "1.79769313486231E+307");  
659                         FormatStringTest ("DblFn2 #74", NumberFormat, 1.79769313486231E+307, "G1", "2E+307");  
660                         FormatStringTest ("DblFn2 #75", NumberFormat, 1.79769313486231E+307, "G3", "1.8E+307");  
661                         FormatStringTest ("DblFn2 #76", NumberFormat, 1.79769313486231E+307, "G4", "1.798E+307");  
662                         FormatStringTest ("DblFn2 #77", NumberFormat, 1.79769313486231E+307, "G6", "1.79769E+307");  
663                         FormatStringTest ("DblFn2 #78", NumberFormat, 1.79769313486231E+307, "G9", "1.79769313E+307");  
664                         FormatStringTest ("DblFn2 #79", NumberFormat, 1.79769313486231E+307, "G67", "1.79769313486231E+307");  
665                         FormatStringTest ("DblFn2 #80", NumberFormat, 1.79769313486231E+307, "N", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.00");  
666                         FormatStringTest ("DblFn2 #81", NumberFormat, 1.79769313486231E+307, "N0", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000");  
667                         FormatStringTest ("DblFn2 #82", NumberFormat, 1.79769313486231E+307, "N1", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0");  
668                         FormatStringTest ("DblFn2 #83", NumberFormat, 1.79769313486231E+307, "N3", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000");  
669                         FormatStringTest ("DblFn2 #84", NumberFormat, 1.79769313486231E+307, "N4", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0000");  
670                         FormatStringTest ("DblFn2 #85", NumberFormat, 1.79769313486231E+307, "N6", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000000");  
671                         FormatStringTest ("DblFn2 #86", NumberFormat, 1.79769313486231E+307, "N9", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000000000");  
672                         FormatStringTest ("DblFn2 #87", NumberFormat, 1.79769313486231E+307, "N67", "17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0000000000000000000000000000000000000000000000000000000000000000000");  
673                         FormatStringTest ("DblFn2 #96", NumberFormat, -1.79769313486231E+307, "C", "$17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0-");  
674                         FormatStringTest ("DblFn2 #97", NumberFormat, -1.79769313486231E+307, "C0", "$17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000-");  
675                         FormatStringTest ("DblFn2 #98", NumberFormat, -1.79769313486231E+307, "C1", "$17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0-");  
676                         FormatStringTest ("DblFn2 #99", NumberFormat, -1.79769313486231E+307, "C3", "$17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000-");  
677                         FormatStringTest ("DblFn2 #100", NumberFormat, -1.79769313486231E+307, "C4", "$17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0000-");  
678                         FormatStringTest ("DblFn2 #101", NumberFormat, -1.79769313486231E+307, "C6", "$17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000000-");  
679                         FormatStringTest ("DblFn2 #102", NumberFormat, -1.79769313486231E+307, "C9", "$17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000000000-");  
680                         FormatStringTest ("DblFn2 #103", NumberFormat, -1.79769313486231E+307, "C67", "$17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0000000000000000000000000000000000000000000000000000000000000000000-");  
681                         FormatStringTest ("DblFn2 #104", NumberFormat, -1.79769313486231E+307, "E", "-1.797693E+307");  
682                         FormatStringTest ("DblFn2 #105", NumberFormat, -1.79769313486231E+307, "E0", "-2E+307");  
683                         FormatStringTest ("DblFn2 #106", NumberFormat, -1.79769313486231E+307, "E1", "-1.8E+307");  
684                         FormatStringTest ("DblFn2 #107", NumberFormat, -1.79769313486231E+307, "E3", "-1.798E+307");  
685                         FormatStringTest ("DblFn2 #108", NumberFormat, -1.79769313486231E+307, "E4", "-1.7977E+307");  
686                         FormatStringTest ("DblFn2 #109", NumberFormat, -1.79769313486231E+307, "E6", "-1.797693E+307");  
687                         FormatStringTest ("DblFn2 #110", NumberFormat, -1.79769313486231E+307, "E9", "-1.797693135E+307");  
688                         FormatStringTest ("DblFn2 #112", NumberFormat, -1.79769313486231E+307, "F", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.00");  
689                         FormatStringTest ("DblFn2 #113", NumberFormat, -1.79769313486231E+307, "F0", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");  
690                         FormatStringTest ("DblFn2 #114", NumberFormat, -1.79769313486231E+307, "F1", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0");  
691                         FormatStringTest ("DblFn2 #115", NumberFormat, -1.79769313486231E+307, "F3", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000");  
692                         FormatStringTest ("DblFn2 #116", NumberFormat, -1.79769313486231E+307, "F4", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000");  
693                         FormatStringTest ("DblFn2 #117", NumberFormat, -1.79769313486231E+307, "F6", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000");  
694                         FormatStringTest ("DblFn2 #118", NumberFormat, -1.79769313486231E+307, "F9", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000000");  
695                         FormatStringTest ("DblFn2 #119", NumberFormat, -1.79769313486231E+307, "F67", "-17976931348623100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000000000000000000000000000000000000000000000000000000000000000");  
696                         FormatStringTest ("DblFn2 #120", NumberFormat, -1.79769313486231E+307, "G", "-1.79769313486231E+307");  
697                         FormatStringTest ("DblFn2 #121", NumberFormat, -1.79769313486231E+307, "G0", "-1.79769313486231E+307");  
698                         FormatStringTest ("DblFn2 #122", NumberFormat, -1.79769313486231E+307, "G1", "-2E+307");  
699                         FormatStringTest ("DblFn2 #123", NumberFormat, -1.79769313486231E+307, "G3", "-1.8E+307");  
700                         FormatStringTest ("DblFn2 #124", NumberFormat, -1.79769313486231E+307, "G4", "-1.798E+307");  
701                         FormatStringTest ("DblFn2 #125", NumberFormat, -1.79769313486231E+307, "G6", "-1.79769E+307");  
702                         FormatStringTest ("DblFn2 #126", NumberFormat, -1.79769313486231E+307, "G9", "-1.79769313E+307");  
703                         FormatStringTest ("DblFn2 #127", NumberFormat, -1.79769313486231E+307, "G67", "-1.79769313486231E+307");  
704                         FormatStringTest ("DblFn2 #128", NumberFormat, -1.79769313486231E+307, "N", "-17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.00");  
705                         FormatStringTest ("DblFn2 #129", NumberFormat, -1.79769313486231E+307, "N0", "-17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000");  
706                         FormatStringTest ("DblFn2 #130", NumberFormat, -1.79769313486231E+307, "N1", "-17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0");  
707                         FormatStringTest ("DblFn2 #131", NumberFormat, -1.79769313486231E+307, "N3", "-17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000");  
708                         FormatStringTest ("DblFn2 #132", NumberFormat, -1.79769313486231E+307, "N4", "-17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0000");  
709                         FormatStringTest ("DblFn2 #133", NumberFormat, -1.79769313486231E+307, "N6", "-17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000000");  
710                         FormatStringTest ("DblFn2 #134", NumberFormat, -1.79769313486231E+307, "N9", "-17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.000000000");  
711                         FormatStringTest ("DblFn2 #135", NumberFormat, -1.79769313486231E+307, "N67", "-17,976,931,348,623,100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0000000000000000000000000000000000000000000000000000000000000000000");  
712                         FormatStringTest ("DblFn2 #144", NumberFormat, 1E-10, "C", "0.0$");  
713                         FormatStringTest ("DblFn2 #145", NumberFormat, 1E-10, "C0", "0$");  
714                         FormatStringTest ("DblFn2 #146", NumberFormat, 1E-10, "C1", "0.0$");  
715                         FormatStringTest ("DblFn2 #147", NumberFormat, 1E-10, "C3", "0.000$");  
716                         FormatStringTest ("DblFn2 #148", NumberFormat, 1E-10, "C4", "0.0000$");  
717                         FormatStringTest ("DblFn2 #149", NumberFormat, 1E-10, "C6", "0.000000$");  
718                         FormatStringTest ("DblFn2 #150", NumberFormat, 1E-10, "C9", "0.000000000$");  
719                         FormatStringTest ("DblFn2 #151", NumberFormat, 1E-10, "C67", "0.0000000001000000000000000000000000000000000000000000000000000000000$");  
720                         FormatStringTest ("DblFn2 #159", NumberFormat, 1E-10, "E67", "1.0000000000000000000000000000000000000000000000000000000000000000000E-010");  
721                         FormatStringTest ("DblFn2 #160", NumberFormat, 1E-10, "F", "0.00");  
722                         FormatStringTest ("DblFn2 #161", NumberFormat, 1E-10, "F0", "0");  
723                         FormatStringTest ("DblFn2 #162", NumberFormat, 1E-10, "F1", "0.0");  
724                         FormatStringTest ("DblFn2 #163", NumberFormat, 1E-10, "F3", "0.000");  
725                         FormatStringTest ("DblFn2 #164", NumberFormat, 1E-10, "F4", "0.0000");  
726                         FormatStringTest ("DblFn2 #165", NumberFormat, 1E-10, "F6", "0.000000");  
727                         FormatStringTest ("DblFn2 #166", NumberFormat, 1E-10, "F9", "0.000000000");  
728                         FormatStringTest ("DblFn2 #167", NumberFormat, 1E-10, "F67", "0.0000000001000000000000000000000000000000000000000000000000000000000");  
729                         FormatStringTest ("DblFn2 #168", NumberFormat, 1E-10, "G", "1E-10");  
730                         FormatStringTest ("DblFn2 #169", NumberFormat, 1E-10, "G0", "1E-10");  
731                         FormatStringTest ("DblFn2 #175", NumberFormat, 1E-10, "G67", "1E-10");  
732                         FormatStringTest ("DblFn2 #176", NumberFormat, 1E-10, "N", "0.00");  
733                         FormatStringTest ("DblFn2 #177", NumberFormat, 1E-10, "N0", "0");  
734                         FormatStringTest ("DblFn2 #178", NumberFormat, 1E-10, "N1", "0.0");  
735                         FormatStringTest ("DblFn2 #179", NumberFormat, 1E-10, "N3", "0.000");  
736                         FormatStringTest ("DblFn2 #180", NumberFormat, 1E-10, "N4", "0.0000");  
737                         FormatStringTest ("DblFn2 #181", NumberFormat, 1E-10, "N6", "0.000000");  
738                         FormatStringTest ("DblFn2 #182", NumberFormat, 1E-10, "N9", "0.000000000");  
739                         FormatStringTest ("DblFn2 #183", NumberFormat, 1E-10, "N67", "0.0000000001000000000000000000000000000000000000000000000000000000000");  
740                         FormatStringTest ("DblFn2 #184", NumberFormat, 1E-10, "P", "##0.00");  
741                         FormatStringTest ("DblFn2 #185", NumberFormat, 1E-10, "P0", "##0");  
742                         FormatStringTest ("DblFn2 #186", NumberFormat, 1E-10, "P1", "##0.0");  
743                         FormatStringTest ("DblFn2 #187", NumberFormat, 1E-10, "P3", "##0.000");  
744                         FormatStringTest ("DblFn2 #188", NumberFormat, 1E-10, "P4", "##0.0000");  
745                         FormatStringTest ("DblFn2 #189", NumberFormat, 1E-10, "P6", "##0.000000");  
746                         FormatStringTest ("DblFn2 #190", NumberFormat, 1E-10, "P9", "##0.000000010");  
747                         FormatStringTest ("DblFn2 #191", NumberFormat, 1E-10, "P67", "##0.0000000100000000000000000000000000000000000000000000000000000000000");  
748                         FormatStringTest ("DblFn2 #192", NumberFormat, 4.94065645841247E-324, "C", "0.0$");  
749                         FormatStringTest ("DblFn2 #193", NumberFormat, 4.94065645841247E-324, "C0", "0$");  
750                         FormatStringTest ("DblFn2 #194", NumberFormat, 4.94065645841247E-324, "C1", "0.0$");  
751                         FormatStringTest ("DblFn2 #195", NumberFormat, 4.94065645841247E-324, "C3", "0.000$");  
752                         FormatStringTest ("DblFn2 #196", NumberFormat, 4.94065645841247E-324, "C4", "0.0000$");  
753                         FormatStringTest ("DblFn2 #197", NumberFormat, 4.94065645841247E-324, "C6", "0.000000$");  
754                         FormatStringTest ("DblFn2 #198", NumberFormat, 4.94065645841247E-324, "C9", "0.000000000$");  
755                         FormatStringTest ("DblFn2 #199", NumberFormat, 4.94065645841247E-324, "C67", "0.0000000000000000000000000000000000000000000000000000000000000000000$");  
756                         FormatStringTest ("DblFn2 #208", NumberFormat, 4.94065645841247E-324, "F", "0.00");  
757                         FormatStringTest ("DblFn2 #209", NumberFormat, 4.94065645841247E-324, "F0", "0");  
758                         FormatStringTest ("DblFn2 #210", NumberFormat, 4.94065645841247E-324, "F1", "0.0");  
759                         FormatStringTest ("DblFn2 #211", NumberFormat, 4.94065645841247E-324, "F3", "0.000");  
760                         FormatStringTest ("DblFn2 #212", NumberFormat, 4.94065645841247E-324, "F4", "0.0000");  
761                         FormatStringTest ("DblFn2 #213", NumberFormat, 4.94065645841247E-324, "F6", "0.000000");  
762                         FormatStringTest ("DblFn2 #214", NumberFormat, 4.94065645841247E-324, "F9", "0.000000000");  
763                         FormatStringTest ("DblFn2 #215", NumberFormat, 4.94065645841247E-324, "F67", "0.0000000000000000000000000000000000000000000000000000000000000000000");  
764                         FormatStringTest ("DblFn2 #216", NumberFormat, 4.94065645841247E-324, "G", "4.94065645841247E-324");  
765                         FormatStringTest ("DblFn2 #217", NumberFormat, 4.94065645841247E-324, "G0", "4.94065645841247E-324");  
766                         FormatStringTest ("DblFn2 #224", NumberFormat, 4.94065645841247E-324, "N", "0.00");  
767                         FormatStringTest ("DblFn2 #225", NumberFormat, 4.94065645841247E-324, "N0", "0");  
768                         FormatStringTest ("DblFn2 #226", NumberFormat, 4.94065645841247E-324, "N1", "0.0");  
769                         FormatStringTest ("DblFn2 #227", NumberFormat, 4.94065645841247E-324, "N3", "0.000");  
770                         FormatStringTest ("DblFn2 #228", NumberFormat, 4.94065645841247E-324, "N4", "0.0000");  
771                         FormatStringTest ("DblFn2 #229", NumberFormat, 4.94065645841247E-324, "N6", "0.000000");  
772                         FormatStringTest ("DblFn2 #230", NumberFormat, 4.94065645841247E-324, "N9", "0.000000000");  
773                         FormatStringTest ("DblFn2 #231", NumberFormat, 4.94065645841247E-324, "N67", "0.0000000000000000000000000000000000000000000000000000000000000000000");  
774                         FormatStringTest ("DblFn2 #232", NumberFormat, 4.94065645841247E-324, "P", "##0.00");  
775                         FormatStringTest ("DblFn2 #233", NumberFormat, 4.94065645841247E-324, "P0", "##0");  
776                         FormatStringTest ("DblFn2 #234", NumberFormat, 4.94065645841247E-324, "P1", "##0.0");  
777                         FormatStringTest ("DblFn2 #235", NumberFormat, 4.94065645841247E-324, "P3", "##0.000");  
778                         FormatStringTest ("DblFn2 #236", NumberFormat, 4.94065645841247E-324, "P4", "##0.0000");  
779                         FormatStringTest ("DblFn2 #237", NumberFormat, 4.94065645841247E-324, "P6", "##0.000000");  
780                         FormatStringTest ("DblFn2 #238", NumberFormat, 4.94065645841247E-324, "P9", "##0.000000000");  
781                         FormatStringTest ("DblFn2 #239", NumberFormat, 4.94065645841247E-324, "P67", "##0.0000000000000000000000000000000000000000000000000000000000000000000");  
782                         FormatStringTest ("DblFn2 #240", NumberFormat, Double.NaN,  "C", "Geen");  
783                         FormatStringTest ("DblFn2 #241", NumberFormat, Double.NaN,  "C0", "Geen");  
784                         FormatStringTest ("DblFn2 #242", NumberFormat, Double.NaN,  "C1", "Geen");  
785                         FormatStringTest ("DblFn2 #243", NumberFormat, Double.NaN,  "C3", "Geen");  
786                         FormatStringTest ("DblFn2 #244", NumberFormat, Double.NaN,  "C4", "Geen");  
787                         FormatStringTest ("DblFn2 #245", NumberFormat, Double.NaN,  "C6", "Geen");  
788                         FormatStringTest ("DblFn2 #246", NumberFormat, Double.NaN,  "C9", "Geen");  
789                         FormatStringTest ("DblFn2 #247", NumberFormat, Double.NaN,  "C67", "Geen");  
790                         FormatStringTest ("DblFn2 #248", NumberFormat, Double.NaN,  "E", "Geen");  
791                         FormatStringTest ("DblFn2 #249", NumberFormat, Double.NaN,  "E0", "Geen");  
792                         FormatStringTest ("DblFn2 #250", NumberFormat, Double.NaN,  "E1", "Geen");  
793                         FormatStringTest ("DblFn2 #251", NumberFormat, Double.NaN,  "E3", "Geen");  
794                         FormatStringTest ("DblFn2 #252", NumberFormat, Double.NaN,  "E4", "Geen");  
795                         FormatStringTest ("DblFn2 #253", NumberFormat, Double.NaN,  "E6", "Geen");  
796                         FormatStringTest ("DblFn2 #254", NumberFormat, Double.NaN,  "E9", "Geen");  
797                         FormatStringTest ("DblFn2 #255", NumberFormat, Double.NaN,  "E67", "Geen");  
798                         FormatStringTest ("DblFn2 #256", NumberFormat, Double.NaN,  "F", "Geen");  
799                         FormatStringTest ("DblFn2 #257", NumberFormat, Double.NaN,  "F0", "Geen");  
800                         FormatStringTest ("DblFn2 #258", NumberFormat, Double.NaN,  "F1", "Geen");  
801                         FormatStringTest ("DblFn2 #259", NumberFormat, Double.NaN,  "F3", "Geen");  
802                         FormatStringTest ("DblFn2 #260", NumberFormat, Double.NaN,  "F4", "Geen");  
803                         FormatStringTest ("DblFn2 #261", NumberFormat, Double.NaN,  "F6", "Geen");  
804                         FormatStringTest ("DblFn2 #262", NumberFormat, Double.NaN,  "F9", "Geen");  
805                         FormatStringTest ("DblFn2 #263", NumberFormat, Double.NaN,  "F67", "Geen");  
806                         FormatStringTest ("DblFn2 #264", NumberFormat, Double.NaN,  "G", "Geen");  
807                         FormatStringTest ("DblFn2 #265", NumberFormat, Double.NaN,  "G0", "Geen");  
808                         FormatStringTest ("DblFn2 #266", NumberFormat, Double.NaN,  "G1", "Geen");  
809                         FormatStringTest ("DblFn2 #267", NumberFormat, Double.NaN,  "G3", "Geen");  
810                         FormatStringTest ("DblFn2 #268", NumberFormat, Double.NaN,  "G4", "Geen");  
811                         FormatStringTest ("DblFn2 #269", NumberFormat, Double.NaN,  "G6", "Geen");  
812                         FormatStringTest ("DblFn2 #270", NumberFormat, Double.NaN,  "G9", "Geen");  
813                         FormatStringTest ("DblFn2 #271", NumberFormat, Double.NaN,  "G67", "Geen");  
814                         FormatStringTest ("DblFn2 #272", NumberFormat, Double.NaN,  "N", "Geen");  
815                         FormatStringTest ("DblFn2 #273", NumberFormat, Double.NaN,  "N0", "Geen");  
816                         FormatStringTest ("DblFn2 #274", NumberFormat, Double.NaN,  "N1", "Geen");  
817                         FormatStringTest ("DblFn2 #275", NumberFormat, Double.NaN,  "N3", "Geen");  
818                         FormatStringTest ("DblFn2 #276", NumberFormat, Double.NaN,  "N4", "Geen");  
819                         FormatStringTest ("DblFn2 #277", NumberFormat, Double.NaN,  "N6", "Geen");  
820                         FormatStringTest ("DblFn2 #278", NumberFormat, Double.NaN,  "N9", "Geen");  
821                         FormatStringTest ("DblFn2 #279", NumberFormat, Double.NaN,  "N67", "Geen");  
822                         FormatStringTest ("DblFn2 #280", NumberFormat, Double.NaN,  "P", "Geen");  
823                         FormatStringTest ("DblFn2 #281", NumberFormat, Double.NaN,  "P0", "Geen");  
824                         FormatStringTest ("DblFn2 #282", NumberFormat, Double.NaN,  "P1", "Geen");  
825                         FormatStringTest ("DblFn2 #283", NumberFormat, Double.NaN,  "P3", "Geen");  
826                         FormatStringTest ("DblFn2 #284", NumberFormat, Double.NaN,  "P4", "Geen");  
827                         FormatStringTest ("DblFn2 #285", NumberFormat, Double.NaN,  "P6", "Geen");  
828                         FormatStringTest ("DblFn2 #286", NumberFormat, Double.NaN,  "P9", "Geen");  
829                         FormatStringTest ("DblFn2 #287", NumberFormat, Double.NaN,  "P67", "Geen");  
830                         FormatStringTest ("DblFn2 #288", NumberFormat, Double.NegativeInfinity, "C", "-Oneindig");  
831                         FormatStringTest ("DblFn2 #289", NumberFormat, Double.NegativeInfinity, "C0", "-Oneindig");  
832                         FormatStringTest ("DblFn2 #290", NumberFormat, Double.NegativeInfinity, "C1", "-Oneindig");  
833                         FormatStringTest ("DblFn2 #291", NumberFormat, Double.NegativeInfinity, "C3", "-Oneindig");  
834                         FormatStringTest ("DblFn2 #292", NumberFormat, Double.NegativeInfinity, "C4", "-Oneindig");  
835                         FormatStringTest ("DblFn2 #293", NumberFormat, Double.NegativeInfinity, "C6", "-Oneindig");  
836                         FormatStringTest ("DblFn2 #294", NumberFormat, Double.NegativeInfinity, "C9", "-Oneindig");  
837                         FormatStringTest ("DblFn2 #295", NumberFormat, Double.NegativeInfinity, "C67", "-Oneindig");  
838                         FormatStringTest ("DblFn2 #296", NumberFormat, Double.NegativeInfinity, "E", "-Oneindig");  
839                         FormatStringTest ("DblFn2 #297", NumberFormat, Double.NegativeInfinity, "E0", "-Oneindig");  
840                         FormatStringTest ("DblFn2 #298", NumberFormat, Double.NegativeInfinity, "E1", "-Oneindig");  
841                         FormatStringTest ("DblFn2 #299", NumberFormat, Double.NegativeInfinity, "E3", "-Oneindig");  
842                         FormatStringTest ("DblFn2 #300", NumberFormat, Double.NegativeInfinity, "E4", "-Oneindig");  
843                         FormatStringTest ("DblFn2 #301", NumberFormat, Double.NegativeInfinity, "E6", "-Oneindig");  
844                         FormatStringTest ("DblFn2 #302", NumberFormat, Double.NegativeInfinity, "E9", "-Oneindig");  
845                         FormatStringTest ("DblFn2 #303", NumberFormat, Double.NegativeInfinity, "E67", "-Oneindig");  
846                         FormatStringTest ("DblFn2 #304", NumberFormat, Double.NegativeInfinity, "F", "-Oneindig");  
847                         FormatStringTest ("DblFn2 #305", NumberFormat, Double.NegativeInfinity, "F0", "-Oneindig");  
848                         FormatStringTest ("DblFn2 #306", NumberFormat, Double.NegativeInfinity, "F1", "-Oneindig");  
849                         FormatStringTest ("DblFn2 #307", NumberFormat, Double.NegativeInfinity, "F3", "-Oneindig");  
850                         FormatStringTest ("DblFn2 #308", NumberFormat, Double.NegativeInfinity, "F4", "-Oneindig");  
851                         FormatStringTest ("DblFn2 #309", NumberFormat, Double.NegativeInfinity, "F6", "-Oneindig");  
852                         FormatStringTest ("DblFn2 #310", NumberFormat, Double.NegativeInfinity, "F9", "-Oneindig");  
853                         FormatStringTest ("DblFn2 #311", NumberFormat, Double.NegativeInfinity, "F67", "-Oneindig");  
854                         FormatStringTest ("DblFn2 #312", NumberFormat, Double.NegativeInfinity, "G", "-Oneindig");  
855                         FormatStringTest ("DblFn2 #313", NumberFormat, Double.NegativeInfinity, "G0", "-Oneindig");  
856                         FormatStringTest ("DblFn2 #314", NumberFormat, Double.NegativeInfinity, "G1", "-Oneindig");  
857                         FormatStringTest ("DblFn2 #315", NumberFormat, Double.NegativeInfinity, "G3", "-Oneindig");  
858                         FormatStringTest ("DblFn2 #316", NumberFormat, Double.NegativeInfinity, "G4", "-Oneindig");  
859                         FormatStringTest ("DblFn2 #317", NumberFormat, Double.NegativeInfinity, "G6", "-Oneindig");  
860                         FormatStringTest ("DblFn2 #318", NumberFormat, Double.NegativeInfinity, "G9", "-Oneindig");  
861                         FormatStringTest ("DblFn2 #319", NumberFormat, Double.NegativeInfinity, "G67", "-Oneindig");  
862                         FormatStringTest ("DblFn2 #320", NumberFormat, Double.NegativeInfinity, "N", "-Oneindig");  
863                         FormatStringTest ("DblFn2 #321", NumberFormat, Double.NegativeInfinity, "N0", "-Oneindig");  
864                         FormatStringTest ("DblFn2 #322", NumberFormat, Double.NegativeInfinity, "N1", "-Oneindig");  
865                         FormatStringTest ("DblFn2 #323", NumberFormat, Double.NegativeInfinity, "N3", "-Oneindig");  
866                         FormatStringTest ("DblFn2 #324", NumberFormat, Double.NegativeInfinity, "N4", "-Oneindig");  
867                         FormatStringTest ("DblFn2 #325", NumberFormat, Double.NegativeInfinity, "N6", "-Oneindig");  
868                         FormatStringTest ("DblFn2 #326", NumberFormat, Double.NegativeInfinity, "N9", "-Oneindig");  
869                         FormatStringTest ("DblFn2 #327", NumberFormat, Double.NegativeInfinity, "N67", "-Oneindig");  
870                         FormatStringTest ("DblFn2 #328", NumberFormat, Double.NegativeInfinity, "P", "-Oneindig");  
871                         FormatStringTest ("DblFn2 #329", NumberFormat, Double.NegativeInfinity, "P0", "-Oneindig");  
872                         FormatStringTest ("DblFn2 #330", NumberFormat, Double.NegativeInfinity, "P1", "-Oneindig");  
873                         FormatStringTest ("DblFn2 #331", NumberFormat, Double.NegativeInfinity, "P3", "-Oneindig");  
874                         FormatStringTest ("DblFn2 #332", NumberFormat, Double.NegativeInfinity, "P4", "-Oneindig");  
875                         FormatStringTest ("DblFn2 #333", NumberFormat, Double.NegativeInfinity, "P6", "-Oneindig");  
876                         FormatStringTest ("DblFn2 #334", NumberFormat, Double.NegativeInfinity, "P9", "-Oneindig");  
877                         FormatStringTest ("DblFn2 #335", NumberFormat, Double.NegativeInfinity, "P67", "-Oneindig");  
878                         FormatStringTest ("DblFn2 #336", NumberFormat, Double.PositiveInfinity, "C", "Oneindig");  
879                         FormatStringTest ("DblFn2 #337", NumberFormat, Double.PositiveInfinity, "C0", "Oneindig");  
880                         FormatStringTest ("DblFn2 #338", NumberFormat, Double.PositiveInfinity, "C1", "Oneindig");  
881                         FormatStringTest ("DblFn2 #339", NumberFormat, Double.PositiveInfinity, "C3", "Oneindig");  
882                         FormatStringTest ("DblFn2 #340", NumberFormat, Double.PositiveInfinity, "C4", "Oneindig");  
883                         FormatStringTest ("DblFn2 #341", NumberFormat, Double.PositiveInfinity, "C6", "Oneindig");  
884                         FormatStringTest ("DblFn2 #342", NumberFormat, Double.PositiveInfinity, "C9", "Oneindig");  
885                         FormatStringTest ("DblFn2 #343", NumberFormat, Double.PositiveInfinity, "C67", "Oneindig");  
886                         FormatStringTest ("DblFn2 #344", NumberFormat, Double.PositiveInfinity, "E", "Oneindig");  
887                         FormatStringTest ("DblFn2 #345", NumberFormat, Double.PositiveInfinity, "E0", "Oneindig");  
888                         FormatStringTest ("DblFn2 #346", NumberFormat, Double.PositiveInfinity, "E1", "Oneindig");  
889                         FormatStringTest ("DblFn2 #347", NumberFormat, Double.PositiveInfinity, "E3", "Oneindig");  
890                         FormatStringTest ("DblFn2 #348", NumberFormat, Double.PositiveInfinity, "E4", "Oneindig");  
891                         FormatStringTest ("DblFn2 #349", NumberFormat, Double.PositiveInfinity, "E6", "Oneindig");  
892                         FormatStringTest ("DblFn2 #350", NumberFormat, Double.PositiveInfinity, "E9", "Oneindig");  
893                         FormatStringTest ("DblFn2 #351", NumberFormat, Double.PositiveInfinity, "E67", "Oneindig");  
894                         FormatStringTest ("DblFn2 #352", NumberFormat, Double.PositiveInfinity, "F", "Oneindig");  
895                         FormatStringTest ("DblFn2 #353", NumberFormat, Double.PositiveInfinity, "F0", "Oneindig");  
896                         FormatStringTest ("DblFn2 #354", NumberFormat, Double.PositiveInfinity, "F1", "Oneindig");  
897                         FormatStringTest ("DblFn2 #355", NumberFormat, Double.PositiveInfinity, "F3", "Oneindig");  
898                         FormatStringTest ("DblFn2 #356", NumberFormat, Double.PositiveInfinity, "F4", "Oneindig");  
899                         FormatStringTest ("DblFn2 #357", NumberFormat, Double.PositiveInfinity, "F6", "Oneindig");  
900                         FormatStringTest ("DblFn2 #358", NumberFormat, Double.PositiveInfinity, "F9", "Oneindig");  
901                         FormatStringTest ("DblFn2 #359", NumberFormat, Double.PositiveInfinity, "F67", "Oneindig");  
902                         FormatStringTest ("DblFn2 #360", NumberFormat, Double.PositiveInfinity, "G", "Oneindig");  
903                         FormatStringTest ("DblFn2 #361", NumberFormat, Double.PositiveInfinity, "G0", "Oneindig");  
904                         FormatStringTest ("DblFn2 #362", NumberFormat, Double.PositiveInfinity, "G1", "Oneindig");  
905                         FormatStringTest ("DblFn2 #363", NumberFormat, Double.PositiveInfinity, "G3", "Oneindig");  
906                         FormatStringTest ("DblFn2 #364", NumberFormat, Double.PositiveInfinity, "G4", "Oneindig");  
907                         FormatStringTest ("DblFn2 #365", NumberFormat, Double.PositiveInfinity, "G6", "Oneindig");  
908                         FormatStringTest ("DblFn2 #366", NumberFormat, Double.PositiveInfinity, "G9", "Oneindig");  
909                         FormatStringTest ("DblFn2 #367", NumberFormat, Double.PositiveInfinity, "G67", "Oneindig");  
910                         FormatStringTest ("DblFn2 #368", NumberFormat, Double.PositiveInfinity, "N", "Oneindig");  
911                         FormatStringTest ("DblFn2 #369", NumberFormat, Double.PositiveInfinity, "N0", "Oneindig");  
912                         FormatStringTest ("DblFn2 #370", NumberFormat, Double.PositiveInfinity, "N1", "Oneindig");  
913                         FormatStringTest ("DblFn2 #371", NumberFormat, Double.PositiveInfinity, "N3", "Oneindig");  
914                         FormatStringTest ("DblFn2 #372", NumberFormat, Double.PositiveInfinity, "N4", "Oneindig");  
915                         FormatStringTest ("DblFn2 #373", NumberFormat, Double.PositiveInfinity, "N6", "Oneindig");  
916                         FormatStringTest ("DblFn2 #374", NumberFormat, Double.PositiveInfinity, "N9", "Oneindig");  
917                         FormatStringTest ("DblFn2 #375", NumberFormat, Double.PositiveInfinity, "N67", "Oneindig");  
918                         FormatStringTest ("DblFn2 #376", NumberFormat, Double.PositiveInfinity, "P", "Oneindig");  
919                         FormatStringTest ("DblFn2 #377", NumberFormat, Double.PositiveInfinity, "P0", "Oneindig");  
920                         FormatStringTest ("DblFn2 #378", NumberFormat, Double.PositiveInfinity, "P1", "Oneindig");  
921                         FormatStringTest ("DblFn2 #379", NumberFormat, Double.PositiveInfinity, "P3", "Oneindig");  
922                         FormatStringTest ("DblFn2 #380", NumberFormat, Double.PositiveInfinity, "P4", "Oneindig");  
923                         FormatStringTest ("DblFn2 #381", NumberFormat, Double.PositiveInfinity, "P6", "Oneindig");  
924                         FormatStringTest ("DblFn2 #382", NumberFormat, Double.PositiveInfinity, "P9", "Oneindig");  
925                         FormatStringTest ("DblFn2 #383", NumberFormat, Double.PositiveInfinity, "P67", "Oneindig");  
926                 }
927
928                 [Test]
929                 public void TestNumberDecimals ()
930                 {
931                         NumberFormatInfo nfi = new NumberFormatInfo ();
932                         nfi.NumberDecimalDigits = 5;
933                         FormatStringTest ("#1", nfi, 70.50, "N", "70.50000");
934                 }
935
936                 // "G" format doesn't use the banker rounding (like Math.Round)
937                 // see bug #60111 for more details
938                 [Test]
939                 public void NonStandardRounding () 
940                 {
941                         // banker's rounding would results in 2.71828182845904
942                         Assert.AreEqual ("2.71828182845905", Math.E.ToString (CultureInfo.InvariantCulture), "G-E");
943                 }
944
945                 // see bug #60110 for more details
946                 [Test]
947                 public void Roundtrip_ExactStringFormat () 
948                 {
949                         // here we check that the "R" output is "extactly" the same as MS implementation
950                         Assert.AreEqual ("2.7182818284590451", Math.E.ToString ("R", CultureInfo.InvariantCulture), "R-E");
951                 }
952
953                 // see bug #60110 for more details
954                 [Test]
955                 public void Roundtrip () 
956                 {
957                         // here we check that we can recreate the "extact" same double from the "R" format
958                         string se = Math.E.ToString ("R", CultureInfo.InvariantCulture);
959                         Double de = Double.Parse (se);
960                         Assert.AreEqual (Math.E, de, "E==E");
961
962                         // we try Mono "long" R format
963                         se = "2.718281828459045090795598298427648842334747314453125";
964                         de = Double.Parse (se);
965                         Assert.AreEqual (Math.E, de, "Mono==E");
966
967                         // we try MS "short" R format
968                         se = "2.7182818284590451";
969                         de = Double.Parse (se);
970                         Assert.AreEqual (Math.E, de, "Microsoft==E");
971                 }
972
973                 [Test]
974                 public void NegativeRoundtrip () 
975                 {
976                         Double value = -Math.E;
977                         // here we check that we can recreate the "extact" same double from the "R" format
978                         string se = value.ToString ("R", CultureInfo.InvariantCulture);
979                         Double de = Double.Parse (se);
980                         Assert.AreEqual (value, de, "-E==-E");
981                 }
982         }
983 }
984