Grumpy XUnit

This commit is contained in:
Ben Adams 2018-08-29 04:52:30 +01:00 committed by Pranav K
parent 22a40b6f2b
commit c7f6e7ab2f
1 changed files with 2 additions and 2 deletions

View File

@ -469,14 +469,14 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
// Assert - 1
Assert.Equal(0, buffer.Length);
Assert.Equal(1, buffer.Pages.Count);
Assert.Single(buffer.Pages);
// Act - 2
buffer.Append("efgh");
// Assert - 2
Assert.Equal(4, buffer.Length);
Assert.Equal(1, buffer.Pages.Count);
Assert.Single(buffer.Pages);
Assert.Equal(new[] { 'e', 'f', 'g', 'h' }, buffer.Pages[0].Take(buffer.Length));
}
}