From c81befe33e04df20f4f6e63a8215a73b1da990a1 Mon Sep 17 00:00:00 2001 From: Amos Onn Date: Tue, 11 Jan 2022 21:13:11 +0100 Subject: [PATCH] Fix default Identifier of BufferedStreamAssertions --- Src/FluentAssertions/Streams/BufferedStreamAssertions.cs | 2 ++ .../ApprovedApi/FluentAssertions/net47.verified.txt | 1 + .../ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt | 1 + .../ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt | 1 + .../ApprovedApi/FluentAssertions/netstandard2.0.verified.txt | 1 + .../ApprovedApi/FluentAssertions/netstandard2.1.verified.txt | 1 + 6 files changed, 7 insertions(+) diff --git a/Src/FluentAssertions/Streams/BufferedStreamAssertions.cs b/Src/FluentAssertions/Streams/BufferedStreamAssertions.cs index 018e873a61..8b193ba680 100644 --- a/Src/FluentAssertions/Streams/BufferedStreamAssertions.cs +++ b/Src/FluentAssertions/Streams/BufferedStreamAssertions.cs @@ -27,6 +27,8 @@ public BufferedStreamAssertions(BufferedStream stream) { } + protected override string Identifier => "buffered stream"; + #if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1 /// /// Asserts that the current has the buffer size. diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt index 8f749545dd..91ed1235fc 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt @@ -2284,6 +2284,7 @@ namespace FluentAssertions.Streams where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions { public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + protected override string Identifier { get; } } public class StreamAssertions : FluentAssertions.Streams.StreamAssertions { diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt index 74366f32aa..5babbebf4a 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp2.1.verified.txt @@ -2284,6 +2284,7 @@ namespace FluentAssertions.Streams where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions { public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + protected override string Identifier { get; } public FluentAssertions.AndConstraint HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { } } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt index 742058b3f4..424b745ac5 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netcoreapp3.0.verified.txt @@ -2284,6 +2284,7 @@ namespace FluentAssertions.Streams where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions { public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + protected override string Identifier { get; } public FluentAssertions.AndConstraint HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { } } diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt index 9a7e925e43..2efa01413d 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.0.verified.txt @@ -2237,6 +2237,7 @@ namespace FluentAssertions.Streams where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions { public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + protected override string Identifier { get; } } public class StreamAssertions : FluentAssertions.Streams.StreamAssertions { diff --git a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt index 27d7e7a226..3b07d8bffc 100644 --- a/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt +++ b/Tests/Approval.Tests/ApprovedApi/FluentAssertions/netstandard2.1.verified.txt @@ -2284,6 +2284,7 @@ namespace FluentAssertions.Streams where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions { public BufferedStreamAssertions(System.IO.BufferedStream stream) { } + protected override string Identifier { get; } public FluentAssertions.AndConstraint HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { } public FluentAssertions.AndConstraint NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { } }