Esempio n. 1
0
            public void Spec12()
            {
                using (var testable = new ExecuteTestable())
                {
                    testable.Instance.Execute();

                    testable.Verify <IJSLintFactory>(x => x.CreateReportBuilder(), Times.Never());
                }
            }
Esempio n. 2
0
            public void Spec13()
            {
                using (var testable = new ExecuteTestable())
                {
                    testable.SetupJSLintFile("file.js", 0);

                    testable.Instance.Execute();

                    testable.Verify <IJSLintFactory>(x => x.CreateReportBuilder());
                }
            }
Esempio n. 3
0
            public void Spec15()
            {
                using (var testable = new ExecuteTestable())
                {
                    testable.SetupJSLintFile("file.js", 0);

                    testable.Instance.ReportFile = "REPORTFILE";
                    testable.Instance.Execute();

                    testable.Verify <IFileSystemWrapper>(x => x.WriteAllText(@"D:\solution\source\project\REPORTFILE", It.IsAny <string>(), Encoding.UTF8));
                }
            }
Esempio n. 4
0
            public void Spec15()
            {
                using (var testable = new ExecuteTestable())
                {
                    testable.SetupJSLintFile("file.js", 0);

                    testable.Instance.ReportFile = "REPORTFILE";
                    testable.Instance.Execute();

                    testable.JSLintReportBuilderMock.Verify(x => x.ToString());
                    testable.Verify <IFileSystemWrapper>(x => x.WriteAllText(@"D:\solution\source\project\REPORTFILE", "REPORTRESULT", Encoding.UTF8));
                }
            }