Beispiel #1
0
            public void Spec02()
            {
                using (var testable = new OnBeforeFolderNodeIgnoreTestable())
                {
                    testable.Initialize();
                    var checkStatus = testable.MenuCommand.OleStatus;

                    I.Expect(testable.MenuCommand.Visible).ToBeFalse();
                }
            }
Beispiel #2
0
            public void Spec03()
            {
                using (var testable = new OnBeforeFolderNodeIgnoreTestable())
                {
                    testable.AddSelectedItem(@"some\path\to\");

                    testable.Initialize();
                    var checkStatus = testable.MenuCommand.OleStatus;

                    I.Expect(testable.MenuCommand.Visible).ToBeTrue();
                }
            }
Beispiel #3
0
            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();
                }
            }