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"); } }
public void Default_Dispose () { StringFormat sf = new StringFormat (); sf.Dispose (); sf.ToString (); }