Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

override Identifier for BufferedStream #1772

Merged
merged 2 commits into from Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Empty file modified AcceptApiChanges.sh 100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions Src/FluentAssertions/Streams/BufferedStreamAssertions.cs
Expand Up @@ -27,6 +27,8 @@ public BufferedStreamAssertions(BufferedStream stream)
{
}

protected override string Identifier => "buffered stream";

#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1
/// <summary>
/// Asserts that the current <see cref="BufferedStream"/> has the <paramref name="expected"/> buffer size.
Expand Down
Expand Up @@ -2284,6 +2284,7 @@ namespace FluentAssertions.Streams
where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions<TAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
protected override string Identifier { get; }
}
public class StreamAssertions : FluentAssertions.Streams.StreamAssertions<System.IO.Stream, FluentAssertions.Streams.StreamAssertions>
{
Expand Down
Expand Up @@ -2284,6 +2284,7 @@ namespace FluentAssertions.Streams
where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions<TAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
protected override string Identifier { get; }
public FluentAssertions.AndConstraint<TAssertions> HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { }
}
Expand Down
Expand Up @@ -2284,6 +2284,7 @@ namespace FluentAssertions.Streams
where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions<TAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
protected override string Identifier { get; }
public FluentAssertions.AndConstraint<TAssertions> HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { }
}
Expand Down
Expand Up @@ -2237,6 +2237,7 @@ namespace FluentAssertions.Streams
where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions<TAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
protected override string Identifier { get; }
}
public class StreamAssertions : FluentAssertions.Streams.StreamAssertions<System.IO.Stream, FluentAssertions.Streams.StreamAssertions>
{
Expand Down
Expand Up @@ -2284,6 +2284,7 @@ namespace FluentAssertions.Streams
where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions<TAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
protected override string Identifier { get; }
public FluentAssertions.AndConstraint<TAssertions> HaveBufferSize(int expected, string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> NotHaveBufferSize(int unexpected, string because = "", params object[] becauseArgs) { }
}
Expand Down