示例#1
0
            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();
                }
            }
示例#2
0
            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();
                }
            }
示例#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();
                }
            }
示例#4
0
            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();
                }
            }