public void ExpertModeValueAndSettingsShouldBeSetProperly() { var testMode = new ExpertMode(); string value = testMode.Value; BoardSettings settings = testMode.Settings; Assert.AreEqual(expected: "Expert", actual: value); Assert.AreEqual(typeof(HardBoardSettings), settings.GetType()); }
public void method_9() { foreach (Control control in this.panel1.Controls) { control.Dispose(); } this.panel1.Controls.Clear(); ExpertMode mode = new ExpertMode { TopLevel = false, FormBorderStyle = FormBorderStyle.None, Visible = true }; this.panel1.Controls.Add(mode); }
public void method_9() { foreach (Control control in this.panel1.Controls) { control.Dispose(); } this.panel1.Controls.Clear(); ExpertMode expertMode = new ExpertMode(); expertMode.TopLevel = false; expertMode.FormBorderStyle = FormBorderStyle.None; expertMode.Visible = true; this.panel1.Controls.Add(expertMode); }
public void GetPreviousShouldReturnNewIntermediateMode() { var testExpertMode = new ExpertMode(); IGameMode testIntermediateMode = testExpertMode.GetPrevious(); Assert.AreEqual(expected: "Intermediate", actual: testIntermediateMode.Value); }
public void GetNextShouldReturnNewBeginnerMode() { var testExpertMode = new ExpertMode(); IGameMode testBeginnerMode = testExpertMode.GetNext(); Assert.AreEqual(expected: "Beginner", actual: testBeginnerMode.Value); }