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 2017ad7
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 15 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 @@ -2279,22 +2279,23 @@ namespace FluentAssertions.Streams
public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions<FluentAssertions.Streams.BufferedStreamAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
protected override string Identifier { get; }
}
public class BufferedStreamAssertions<TAssertions> : FluentAssertions.Streams.StreamAssertions<System.IO.BufferedStream, TAssertions>
public abstract class BufferedStreamAssertions<TAssertions> : FluentAssertions.Streams.StreamAssertions<System.IO.BufferedStream, TAssertions>
where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions<TAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
}
public class StreamAssertions : FluentAssertions.Streams.StreamAssertions<System.IO.Stream, FluentAssertions.Streams.StreamAssertions>
{
public StreamAssertions(System.IO.Stream stream) { }
protected override string Identifier { get; }
}
public class StreamAssertions<TSubject, TAssertions> : FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject, TAssertions>
public abstract class StreamAssertions<TSubject, TAssertions> : FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject, TAssertions>
where TSubject : System.IO.Stream
where TAssertions : FluentAssertions.Streams.StreamAssertions<TSubject, TAssertions>
{
public StreamAssertions(TSubject stream) { }
protected override string Identifier { get; }
public FluentAssertions.AndConstraint<TAssertions> BeReadOnly(string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> BeReadable(string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> BeSeekable(string because = "", params object[] becauseArgs) { }
Expand Down
Expand Up @@ -2279,8 +2279,9 @@ namespace FluentAssertions.Streams
public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions<FluentAssertions.Streams.BufferedStreamAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
protected override string Identifier { get; }
}
public class BufferedStreamAssertions<TAssertions> : FluentAssertions.Streams.StreamAssertions<System.IO.BufferedStream, TAssertions>
public abstract class BufferedStreamAssertions<TAssertions> : FluentAssertions.Streams.StreamAssertions<System.IO.BufferedStream, TAssertions>
where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions<TAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
Expand All @@ -2290,13 +2291,13 @@ namespace FluentAssertions.Streams
public class StreamAssertions : FluentAssertions.Streams.StreamAssertions<System.IO.Stream, FluentAssertions.Streams.StreamAssertions>
{
public StreamAssertions(System.IO.Stream stream) { }
protected override string Identifier { get; }
}
public class StreamAssertions<TSubject, TAssertions> : FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject, TAssertions>
public abstract class StreamAssertions<TSubject, TAssertions> : FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject, TAssertions>
where TSubject : System.IO.Stream
where TAssertions : FluentAssertions.Streams.StreamAssertions<TSubject, TAssertions>
{
public StreamAssertions(TSubject stream) { }
protected override string Identifier { get; }
public FluentAssertions.AndConstraint<TAssertions> BeReadOnly(string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> BeReadable(string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> BeSeekable(string because = "", params object[] becauseArgs) { }
Expand Down
Expand Up @@ -2279,8 +2279,9 @@ namespace FluentAssertions.Streams
public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions<FluentAssertions.Streams.BufferedStreamAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
protected override string Identifier { get; }
}
public class BufferedStreamAssertions<TAssertions> : FluentAssertions.Streams.StreamAssertions<System.IO.BufferedStream, TAssertions>
public abstract class BufferedStreamAssertions<TAssertions> : FluentAssertions.Streams.StreamAssertions<System.IO.BufferedStream, TAssertions>
where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions<TAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
Expand All @@ -2290,13 +2291,13 @@ namespace FluentAssertions.Streams
public class StreamAssertions : FluentAssertions.Streams.StreamAssertions<System.IO.Stream, FluentAssertions.Streams.StreamAssertions>
{
public StreamAssertions(System.IO.Stream stream) { }
protected override string Identifier { get; }
}
public class StreamAssertions<TSubject, TAssertions> : FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject, TAssertions>
public abstract class StreamAssertions<TSubject, TAssertions> : FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject, TAssertions>
where TSubject : System.IO.Stream
where TAssertions : FluentAssertions.Streams.StreamAssertions<TSubject, TAssertions>
{
public StreamAssertions(TSubject stream) { }
protected override string Identifier { get; }
public FluentAssertions.AndConstraint<TAssertions> BeReadOnly(string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> BeReadable(string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> BeSeekable(string because = "", params object[] becauseArgs) { }
Expand Down
Expand Up @@ -2232,22 +2232,23 @@ namespace FluentAssertions.Streams
public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions<FluentAssertions.Streams.BufferedStreamAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
protected override string Identifier { get; }
}
public class BufferedStreamAssertions<TAssertions> : FluentAssertions.Streams.StreamAssertions<System.IO.BufferedStream, TAssertions>
public abstract class BufferedStreamAssertions<TAssertions> : FluentAssertions.Streams.StreamAssertions<System.IO.BufferedStream, TAssertions>
where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions<TAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
}
public class StreamAssertions : FluentAssertions.Streams.StreamAssertions<System.IO.Stream, FluentAssertions.Streams.StreamAssertions>
{
public StreamAssertions(System.IO.Stream stream) { }
protected override string Identifier { get; }
}
public class StreamAssertions<TSubject, TAssertions> : FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject, TAssertions>
public abstract class StreamAssertions<TSubject, TAssertions> : FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject, TAssertions>
where TSubject : System.IO.Stream
where TAssertions : FluentAssertions.Streams.StreamAssertions<TSubject, TAssertions>
{
public StreamAssertions(TSubject stream) { }
protected override string Identifier { get; }
public FluentAssertions.AndConstraint<TAssertions> BeReadOnly(string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> BeReadable(string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> BeSeekable(string because = "", params object[] becauseArgs) { }
Expand Down
Expand Up @@ -2279,8 +2279,9 @@ namespace FluentAssertions.Streams
public class BufferedStreamAssertions : FluentAssertions.Streams.BufferedStreamAssertions<FluentAssertions.Streams.BufferedStreamAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
protected override string Identifier { get; }
}
public class BufferedStreamAssertions<TAssertions> : FluentAssertions.Streams.StreamAssertions<System.IO.BufferedStream, TAssertions>
public abstract class BufferedStreamAssertions<TAssertions> : FluentAssertions.Streams.StreamAssertions<System.IO.BufferedStream, TAssertions>
where TAssertions : FluentAssertions.Streams.BufferedStreamAssertions<TAssertions>
{
public BufferedStreamAssertions(System.IO.BufferedStream stream) { }
Expand All @@ -2290,13 +2291,13 @@ namespace FluentAssertions.Streams
public class StreamAssertions : FluentAssertions.Streams.StreamAssertions<System.IO.Stream, FluentAssertions.Streams.StreamAssertions>
{
public StreamAssertions(System.IO.Stream stream) { }
protected override string Identifier { get; }
}
public class StreamAssertions<TSubject, TAssertions> : FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject, TAssertions>
public abstract class StreamAssertions<TSubject, TAssertions> : FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject, TAssertions>
where TSubject : System.IO.Stream
where TAssertions : FluentAssertions.Streams.StreamAssertions<TSubject, TAssertions>
{
public StreamAssertions(TSubject stream) { }
protected override string Identifier { get; }
public FluentAssertions.AndConstraint<TAssertions> BeReadOnly(string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> BeReadable(string because = "", params object[] becauseArgs) { }
public FluentAssertions.AndConstraint<TAssertions> BeSeekable(string because = "", params object[] becauseArgs) { }
Expand Down

0 comments on commit 2017ad7

Please sign in to comment.