Beispiel #1
0
    public void BenchmarkParser_parses_TheBenchmark()
    {
        var parser = new BenchmarkOutputParser();

        var actual = parser.Parse(Outputs.Benchmark).Benchmark;

        actual.ShouldStartWith("Windows 10.0 20201");
        actual.ShouldEndWith("Tot:             671   3245  21934");
    }
Beispiel #2
0
    public void BenchmarkParser_parses_InfoLine()
    {
        var parser = new BenchmarkOutputParser();

        var          actual   = parser.Parse(Outputs.Benchmark);
        const string expected = "7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21";

        actual.Information.ShouldBe(expected);
    }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BenchmarkCommand"/> class.
 /// </summary>
 public BenchmarkCommand()
 {
     outputParser = new BenchmarkOutputParser();
 }