diff --git a/lib/Shouldly/2.5.0/Shouldly.dll b/lib/Shouldly/2.5.0/Shouldly.dll new file mode 100644 index 000000000..ce1c39a94 Binary files /dev/null and b/lib/Shouldly/2.5.0/Shouldly.dll differ diff --git a/lib/Shouldly/2.5.0/Shouldly.pdb b/lib/Shouldly/2.5.0/Shouldly.pdb new file mode 100644 index 000000000..548a325e6 Binary files /dev/null and b/lib/Shouldly/2.5.0/Shouldly.pdb differ diff --git a/lib/nunit.should.dll b/lib/nunit.should.dll deleted file mode 100644 index 7e9daa199..000000000 Binary files a/lib/nunit.should.dll and /dev/null differ diff --git a/src/FluentMigrator.Tests/FluentMigrator.Tests.csproj b/src/FluentMigrator.Tests/FluentMigrator.Tests.csproj index e55a5972c..e259e91a6 100644 --- a/src/FluentMigrator.Tests/FluentMigrator.Tests.csproj +++ b/src/FluentMigrator.Tests/FluentMigrator.Tests.csproj @@ -117,6 +117,9 @@ False ..\..\lib\Hana\Sap.Data.Hana.v3.5.dll + + ..\..\lib\Shouldly\2.5.0\Shouldly.dll + @@ -139,9 +142,6 @@ ..\..\lib\nunit.framework.dll - - ..\..\lib\nunit.should.dll - ..\..\lib\Oracle.DataAccess.dll @@ -291,6 +291,7 @@ + diff --git a/src/FluentMigrator.Tests/NUnitShouldShouldlyBridgeExtensions.cs b/src/FluentMigrator.Tests/NUnitShouldShouldlyBridgeExtensions.cs new file mode 100644 index 000000000..e9378c61c --- /dev/null +++ b/src/FluentMigrator.Tests/NUnitShouldShouldlyBridgeExtensions.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using Shouldly; + +namespace NUnit.Should +{ + public static class NUnitShouldShouldlyBridgeExtensions + { + public static void ShouldBeTrue(this bool actual) + { + ShouldBeTestExtensions.ShouldBe(actual, true); + } + + public static void ShouldBeFalse(this bool actual) + { + ShouldBeTestExtensions.ShouldBe(actual, false); + } + + public static void ShouldNotBeNull(this T actual) where T : class + { + ShouldBeTestExtensions.ShouldNotBe(actual, null); + } + + public static void ShouldBeNull(this T actual) where T : class + { + ShouldBeTestExtensions.ShouldBe(actual, null); + } + + public static void ShouldBeGreaterThan(this T actual, T expected) where T : IComparable + { + ShouldBeTestExtensions.ShouldBeGreaterThan(actual, expected); + } + + public static void ShouldBe(this T actual, T expected) + { + ShouldBeTestExtensions.ShouldBe(actual, expected); + } + + public static void ShouldBeSameAs(this T actual, T expected) + { + ShouldBeTestExtensions.ShouldBeSameAs(actual, expected); + } + + public static void ShouldContain(this IEnumerable collection, T item) + { + ShouldBeEnumerableTestExtensions.ShouldContain(collection, item); + } + + public static void ShouldNotContain(this IEnumerable collection, T item) + { + ShouldBeEnumerableTestExtensions.ShouldNotContain(collection, item); + } + + public static void ShouldBeOfType(this object actual) + { + ShouldBeTestExtensions.ShouldBeOfType(actual); + } + } +} \ No newline at end of file