diff --git a/CliFx.Analyzers.Tests/CliFx.Analyzers.Tests.csproj b/CliFx.Analyzers.Tests/CliFx.Analyzers.Tests.csproj index f3860c9..2fd42ba 100644 --- a/CliFx.Analyzers.Tests/CliFx.Analyzers.Tests.csproj +++ b/CliFx.Analyzers.Tests/CliFx.Analyzers.Tests.csproj @@ -13,14 +13,14 @@ - + - - - + + + - + diff --git a/CliFx.Benchmarks/CliFx.Benchmarks.csproj b/CliFx.Benchmarks/CliFx.Benchmarks.csproj index f4265ae..924f15d 100644 --- a/CliFx.Benchmarks/CliFx.Benchmarks.csproj +++ b/CliFx.Benchmarks/CliFx.Benchmarks.csproj @@ -6,9 +6,9 @@ - + - + diff --git a/CliFx.Demo/CliFx.Demo.csproj b/CliFx.Demo/CliFx.Demo.csproj index 688a8ae..6e05ff0 100644 --- a/CliFx.Demo/CliFx.Demo.csproj +++ b/CliFx.Demo/CliFx.Demo.csproj @@ -6,7 +6,7 @@ - + diff --git a/CliFx.Tests/CliFx.Tests.csproj b/CliFx.Tests/CliFx.Tests.csproj index 67a64ba..be13104 100644 --- a/CliFx.Tests/CliFx.Tests.csproj +++ b/CliFx.Tests/CliFx.Tests.csproj @@ -13,15 +13,15 @@ - - - + + + - - + + - + diff --git a/CliFx.Tests/ConsoleSpecs.cs b/CliFx.Tests/ConsoleSpecs.cs index cfdd60e..1ebe2db 100644 --- a/CliFx.Tests/ConsoleSpecs.cs +++ b/CliFx.Tests/ConsoleSpecs.cs @@ -80,9 +80,9 @@ public class Command : ICommand // Assert exitCode.Should().Be(0); - Console.OpenStandardInput().Should().NotBe(FakeConsole.Input.BaseStream); - Console.OpenStandardOutput().Should().NotBe(FakeConsole.Output.BaseStream); - Console.OpenStandardError().Should().NotBe(FakeConsole.Error.BaseStream); + Console.OpenStandardInput().Should().NotBeSameAs(FakeConsole.Input.BaseStream); + Console.OpenStandardOutput().Should().NotBeSameAs(FakeConsole.Output.BaseStream); + Console.OpenStandardError().Should().NotBeSameAs(FakeConsole.Error.BaseStream); Console.ForegroundColor.Should().NotBe(ConsoleColor.DarkMagenta); Console.BackgroundColor.Should().NotBe(ConsoleColor.DarkMagenta); diff --git a/CliFx.Tests/Utils/Extensions/AssertionExtensions.cs b/CliFx.Tests/Utils/Extensions/AssertionExtensions.cs index ea88960..cd27b69 100644 --- a/CliFx.Tests/Utils/Extensions/AssertionExtensions.cs +++ b/CliFx.Tests/Utils/Extensions/AssertionExtensions.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using FluentAssertions; -using FluentAssertions.Collections; using FluentAssertions.Execution; using FluentAssertions.Primitives; @@ -9,16 +8,15 @@ namespace CliFx.Tests.Utils.Extensions { internal static class AssertionExtensions { - public static AndConstraint ConsistOfLines( + public static void ConsistOfLines( this StringAssertions assertions, IEnumerable lines) { var actualLines = assertions.Subject.Split(new[] {'\n', '\r'}, StringSplitOptions.RemoveEmptyEntries); - - return actualLines.Should().Equal(lines); + actualLines.Should().Equal(lines); } - public static AndConstraint ConsistOfLines( + public static void ConsistOfLines( this StringAssertions assertions, params string[] lines) => assertions.ConsistOfLines((IEnumerable) lines); diff --git a/CliFx/CliFx.csproj b/CliFx/CliFx.csproj index b2aef44..e6533e3 100644 --- a/CliFx/CliFx.csproj +++ b/CliFx/CliFx.csproj @@ -22,7 +22,7 @@ - +