public void TestEnum() { ClearConfig(); Farter farter = new Farter(); XmlSettings<Farter> settings = XmlSettings<Farter>.Bind(farter, CONFIG_FILE); farter.Smell = Farts.SilentButDeadly; settings.Write(); farter = new Farter(); settings = XmlSettings<Farter>.Bind(farter, CONFIG_FILE); Assert.AreEqual(farter.Smell, Farts.SilentButDeadly); }
public void TestEnum() { ClearConfig(); Farter farter = new Farter(); XmlSettings <Farter> settings = XmlSettings <Farter> .Bind(farter, CONFIG_FILE); farter.Smell = Farts.SilentButDeadly; settings.Write(); farter = new Farter(); settings = XmlSettings <Farter> .Bind(farter, CONFIG_FILE); Assert.AreEqual(farter.Smell, Farts.SilentButDeadly); }