Skip to content

Commit

Permalink
override Identifier for BufferedStream (#1772)
Browse files Browse the repository at this point in the history
Fix default Identifier of BufferedStreamAssertions

Co-authored-by: Amos Onn <aonn@its.jnj.com>
  • Loading branch information
amosonn and Amos Onn committed Jan 17, 2022
1 parent 8165b67 commit ac04547
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
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 @@ -2292,6 +2292,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 @@ -2292,6 +2292,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 @@ -2292,6 +2292,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 @@ -2244,6 +2244,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 @@ -2292,6 +2292,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

0 comments on commit ac04547

Please sign in to comment.