Example #1
0
        public void SetAndGetBGSettingTest()
        {
            Configs_Accessor target = new Configs_Accessor();

            target.SetBGSetting("Mock", "Mock");

            Assert.AreNotEqual(target.GetBGSetting("Mock"), "Mock", "Should not be able to add new settings");

            target.SetBGSetting("bgDirectory", "MockDir");

            Assert.AreEqual(target.GetBGSetting("bgDirectory"), "MockDir",
                            "Should be able to edit existing settings");
        }
Example #2
0
        public void SetAndGetBGSettingTest()
        {
            Configs_Accessor target = new Configs_Accessor();

            target.SetBGSetting("Mock", "Mock");

            Assert.AreNotEqual(target.GetBGSetting("Mock"), "Mock", "Should not be able to add new settings");

            target.SetBGSetting("bgDirectory", "MockDir");

            Assert.AreEqual(target.GetBGSetting("bgDirectory"), "MockDir",
                "Should be able to edit existing settings");
        }