public void Spec01() { using (var testable = new OnBeforeFolderNodeIgnoreTestable()) { testable.AddSelectedItem(@"some\path\to\"); testable.AddSelectedItem(@"data\"); testable.Initialize(); var checkStatus = testable.MenuCommand.OleStatus; I.Expect(testable.MenuCommand.Visible).ToBeFalse(); } }
public void Spec01() { using (var testable = new OnBeforeFolderNodeIgnoreTestable()) { testable.AddSelectedItem(@"some\path\to\"); testable.AddSelectedItem(@"data\"); testable.Init(); testable.BeforeHandler.Invoke(testable.MenuCommand, null); I.Expect(testable.MenuCommand.Visible).ToBeFalse(); } }
public void Spec06() { using (var testable = new OnBeforeFolderNodeIgnoreTestable()) { testable.AddSelectedItem(@"some\path\to\"); testable.Settings.Ignore.Add(@"other\path"); testable.Initialize(); var checkStatus = testable.MenuCommand.OleStatus; I.Expect(testable.MenuCommand.Enabled).ToBeTrue(); I.Expect(testable.MenuCommand.Checked).ToBeFalse(); } }
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(); } }