Пример #1
0
            public void Spec01()
            {
                using (var testable = new OnBeforeItemNodeIgnoreTestable())
                {
                    testable.AddSelectedItem(@"some\path\to\file.js");
                    testable.AddSelectedItem(@"data.json");

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

                    I.Expect(testable.MenuCommand.Visible).ToBeFalse();
                }
            }
Пример #2
0
            public void Spec01()
            {
                using (var testable = new OnBeforeItemNodeIgnoreTestable())
                {
                    testable.AddSelectedItem(@"some\path\to\file.js");
                    testable.AddSelectedItem(@"data.json");

                    testable.Init();
                    testable.BeforeHandler.Invoke(testable.MenuCommand, null);

                    I.Expect(testable.MenuCommand.Visible).ToBeFalse();
                }
            }
Пример #3
0
            public void Spec07()
            {
                using (var testable = new OnBeforeItemNodeIgnoreTestable())
                {
                    testable.AddSelectedItem(@"some\path\to\file.js");
                    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 Spec07()
            {
                using (var testable = new OnBeforeItemNodeIgnoreTestable())
                {
                    testable.AddSelectedItem(@"some\path\to\file.js");
                    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();
                }
            }