Пример #1
0
            public void Spec04()
            {
                using (var testable = new OnItemNodeIgnoreTestable())
                {
                    testable.Initialize();
                    testable.MenuCommand.Invoke(testable.MenuCommand);

                    testable.Verify <IVisualStudioJSLintProvider>(x => x.SaveSettings(testable.ProjectMock.Object, testable.Settings));
                }
            }
Пример #2
0
            public void Spec02()
            {
                using (var testable = new OnItemNodeIgnoreTestable())
                {
                    testable.Settings.Ignore.Add(@"/SOME/PATH/TO/FILE.JS");

                    testable.Initialize();
                    testable.MenuCommand.Invoke(testable.MenuCommand);

                    I.Expect(testable.Settings.Ignore).ToBeEmpty();
                }
            }
Пример #3
0
            public void Spec03()
            {
                using (var testable = new OnItemNodeIgnoreTestable())
                {
                    testable.Settings.Ignore.Add(@"/SOME/PATH/");

                    testable.Initialize();
                    testable.MenuCommand.Invoke(testable.MenuCommand);

                    I.Expect(testable.Settings.Ignore).ToContain(@"\some\path\to\file.js");
                }
            }
Пример #4
0
            public void Spec01()
            {
                using (var testable = new OnItemNodeIgnoreTestable())
                {
                    testable.Settings.Ignore.Add(@"SOME\PATH\TO\FILE.JS");

                    testable.Init();
                    testable.MenuCommand.Invoke(testable.MenuCommand);

                    I.Expect(testable.Settings.Ignore).ToBeEmpty();
                }
            }