public void CreateLogs() { MyProcRunner runner = new MyProcRunner(); PsLogEventsLogger logs = new PsLogEventsLogger(runner); logs.CreateLogs(outputDir); Assert.IsTrue(runner.Executable.EndsWith("psloglist.exe"), "Wrong process has been run!"); Assert.AreEqual(2, runner.count); }
public void CreateLog() { MyProcRunner runner = new MyProcRunner(); DxDiagLog dxlog = new DxDiagLog(runner); string tempFile = Environment.GetEnvironmentVariable("SystemDrive") + "\\_dxdiag.txt"; FileHelper.Touch(tempFile); dxlog.CreateLogs("Support\\TestData\\TestOutput"); Assert.IsTrue(runner.Executable.EndsWith("dxdiag.exe"), "Wrong thing has been run!"); Assert.IsTrue(runner.hasRun); Assert.IsFalse(File.Exists(tempFile)); }