public void DisposeTest() { MySettingsUser settings = new MySettingsUser(); settings.PutSetting("MyInt", 1); settings.PutSetting("MyBool", true); settings.PutSetting("MyString", "text"); settings.PutSetting("MyDouble", 1.0); settings.PutSetting("MyDecimal", 1M); settings.PutSetting("MyArray", new int[] { 1,2,3,4 } ); settings.PutSetting("MyColor", Color.Red); settings.PutSetting("MyGUID", Guid.NewGuid()); settings.PutSetting("5 Bad Xml Element Name", 1); settings.Dispose(); }
public void GetSettingTest() { MySettingsUser settings = new MySettingsUser(); settings.PutSetting("5 Bad Xml Element Name", 100); Assert.AreEqual(100, settings.GetSetting("5 Bad Xml Element Name", 1)); settings.Dispose(); }