public void LoadSettings_WillLoadFromRegistryBranchOfSpecificCiderWindow_Always() { var winConfig = new Fake_WindowConfiguration("winOne"); winConfig.ForcedSettingsToLoad["Left"] = 10; winConfig.ForcedSettingsToLoad["Top"] = 20; winConfig.ForcedSettingsToLoad["Width"] = 30; winConfig.ForcedSettingsToLoad["Height"] = 40; winConfig.LoadSettings(); Assert.AreEqual(@"HKEY_CURRENT_USER\Software\Cider-x64\1.0.0\winOne", winConfig.RegKeysLoadedFrom[0].RegPath); }
public void LoadSettings_WillLoadWindowDimensions_Always() { var winConfig = new Fake_WindowConfiguration("winOne"); winConfig.ForcedSettingsToLoad["Left"] = 10; winConfig.ForcedSettingsToLoad["Top"] = 20; winConfig.ForcedSettingsToLoad["Width"] = 30; winConfig.ForcedSettingsToLoad["Height"] = 40; winConfig.LoadSettings(); Assert.AreEqual(10, winConfig.Left); Assert.AreEqual(20, winConfig.Top); Assert.AreEqual(30, winConfig.Width); Assert.AreEqual(40, winConfig.Height); }