Пример #1
0
        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);
        }
Пример #2
0
        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);
        }