AspUnitRunner.Tests.TestResults.Format_should_return_expected_string C# (CSharp) Method

Format_should_return_expected_string() private method

private Format_should_return_expected_string ( ) : void
return void
        public void Format_should_return_expected_string()
        {
            var expectedFormat = "Failure: Container.Test1: First" + Environment.NewLine
                + "Error: Container.Test2: Second" + Environment.NewLine + Environment.NewLine
                + "Tests: 5, Errors: 1, Failures: 1" + Environment.NewLine;
            var results = new Results {
                Tests = 5,
                Errors = 1,
                Failures = 1,
                DetailList = new IResultDetail[] {
                    new ResultDetail(ResultType.Failure, "Container.Test1", "First"),
                    new ResultDetail(ResultType.Error, "Container.Test2", "Second")
                }
            };

            Assert.That(results.Format(), Is.EqualTo(expectedFormat));
        }