예제 #1
0
		public void Default ()
		{
			using (StringFormat sf = new StringFormat ()) {
				CheckDefaults (sf);
				Assert.AreEqual ("[StringFormat, FormatFlags=0]", sf.ToString (), "ToString");
				// check setters validations
				sf.FormatFlags = (StringFormatFlags) Int32.MinValue;
				Assert.AreEqual ((StringFormatFlags) Int32.MinValue, sf.FormatFlags, "Min-FormatFlags");
				Assert.AreEqual ("[StringFormat, FormatFlags=-2147483648]", sf.ToString (), "ToString-2");
			}
		}
예제 #2
0
		public void Default_Dispose ()
		{
			StringFormat sf = new StringFormat ();
			sf.Dispose ();
			sf.ToString ();
		}