static void GenerateToString_bool_bool_bool_int_int_Test ()
		{
			string Name = "mtp";
			string TestName = MethodInfo.GetCurrentMethod ().Name.Replace ("Generate", "");
			int counter = 0;

			WriteTestHeader (TestName, "MaskedTextProvider mtp;", "int Int32_out = 0;", "MaskedTextResultHint MaskedTextResultHint_out = MaskedTextResultHint.Unknown;");
			MS_System_ComponentModel.MaskedTextProvider mtp = null;
			//int Int32_out = 0;
			//MS_System_ComponentModel.MaskedTextResultHint MaskedTextResultHint_out = MS_System_ComponentModel.MaskedTextResultHint.Unknown;

			foreach (string mask in test_masks) {
				foreach (bool value1 in new bool [] { true, false }) {
					foreach (bool value2 in new bool [] { true, false }) {
						foreach (bool value3 in new bool [] { true, false }) {
							for (int i = -1; i < mask.Length + 1; i++) {
								for (int j = -1; j < mask.Length + 1; j++) {

									bool more_states = true;
									int stateindex = 0;
									do {
										object [] arguments;
										arguments = new object [] { value1, value2, value3, i, j };
										if (Compare ("ToString", mask, ref stateindex, arguments, ref more_states)) {
											continue;
										}

										WriteTestStart ();
										mtp = new MS_System_ComponentModel.MaskedTextProvider (mask);
										WriteLine ("mtp = new MaskedTextProvider (@\"" + mask.Replace ("\"", "\"\"") + "\");");
										more_states = CreateState (mtp, stateindex);
										stateindex++;

										WriteLine ("Assert.AreEqual ({0}, mtp.ToString ({4}, {5}, {6}, {2}, {3}), \"#{1}\");",
											GetStringValue (mtp.ToString (value1, value2, value3, i, j)), (counter++).ToString (), i.ToString (), j.ToString (), value1 ? "true" : "false", value2 ? "true" : "false", value3 ? "true" : "false");

										WriteAssertProperties (mtp, Name, TestName, ref counter);
										WriteTestEnd ();

									} while (more_states);
								}
							}
						}
					}
				}
			}

			WriteTestFooter ();
		}
		static void GenerateToStringTest ()
		{
			string Name = "mtp";
			string TestName = MethodInfo.GetCurrentMethod ().Name.Replace ("Generate", "");
			int counter = 0;

			WriteTestHeader (TestName, "MaskedTextProvider mtp;", "int Int32_out = 0;", "MaskedTextResultHint MaskedTextResultHint_out = MaskedTextResultHint.Unknown;");
			MS_System_ComponentModel.MaskedTextProvider mtp = null;
			//int Int32_out = 0;
			//MS_System_ComponentModel.MaskedTextResultHint MaskedTextResultHint_out = MS_System_ComponentModel.MaskedTextResultHint.Unknown;

			foreach (string mask in test_masks) {
				bool more_states = true;
				int stateindex = 0;
				do {
					object [] arguments;
					arguments = new object [] { };
					if (Compare ("ToString", mask, ref stateindex, arguments, ref more_states)) {
						continue;
					}

					WriteTestStart ();
					mtp = new MS_System_ComponentModel.MaskedTextProvider (mask);
					WriteLine ("mtp = new MaskedTextProvider (@\"" + mask.Replace ("\"", "\"\"") + "\");");
					more_states = CreateState (mtp, stateindex);
					stateindex++;

					WriteLine ("Assert.AreEqual ({0}, mtp.ToString (), \"#{1}\");",
						GetStringValue (mtp.ToString ()), (counter++).ToString ());

					WriteAssertProperties (mtp, Name, TestName, ref counter);
					WriteTestEnd ();

				} while (more_states);
			}
			WriteTestFooter ();
		}