예제 #1
0
    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);
    }
예제 #2
0
        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);
        }
예제 #3
0
    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));
    }
예제 #4
0
        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));
        }