public void Spec12() { using (var testable = new ExecuteTestable()) { testable.Instance.Execute(); testable.Verify <IJSLintFactory>(x => x.CreateReportBuilder(), Times.Never()); } }
public void Spec13() { using (var testable = new ExecuteTestable()) { testable.SetupJSLintFile("file.js", 0); testable.Instance.Execute(); testable.Verify <IJSLintFactory>(x => x.CreateReportBuilder()); } }
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)); } }
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)); } }