Skip to content

Commit

Permalink
Fix default Identifier of BufferedStreamAssertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Amos Onn committed Jan 17, 2022
1 parent 7864464 commit c81befe
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
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

0 comments on commit c81befe

Please sign in to comment.