public void Spec02() { using (var testable = new OnBeforeFolderNodeIgnoreTestable()) { testable.Init(); testable.BeforeHandler.Invoke(testable.MenuCommand, null); I.Expect(testable.MenuCommand.Visible).ToBeFalse(); } }
public void Spec03() { using (var testable = new OnBeforeFolderNodeIgnoreTestable()) { testable.AddSelectedItem(@"some\path\to\"); testable.Init(); testable.BeforeHandler.Invoke(testable.MenuCommand, null); I.Expect(testable.MenuCommand.Visible).ToBeTrue(); } }
public void Spec06() { using (var testable = new OnBeforeFolderNodeIgnoreTestable()) { testable.AddSelectedItem(@"some\path\to\"); testable.Settings.Ignore.Add(@"other\path"); testable.Init(); testable.BeforeHandler.Invoke(testable.MenuCommand, null); I.Expect(testable.MenuCommand.Enabled).ToBeTrue(); I.Expect(testable.MenuCommand.Checked).ToBeFalse(); } }