Exemplo n.º 1
0
            public void Spec02()
            {
                using (var testable = new OnBeforeFolderNodeIgnoreTestable())
                {
                    testable.Init();
                    testable.BeforeHandler.Invoke(testable.MenuCommand, null);

                    I.Expect(testable.MenuCommand.Visible).ToBeFalse();
                }
            }
Exemplo n.º 2
0
            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();
                }
            }
Exemplo n.º 3
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();
                }
            }