Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 5f94116

Browse files
Added use of shouldly
1 parent 403fd75 commit 5f94116

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/GitTools.Core.Tests/Extensions/StringExtensionsFacts.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace GitTools.Tests
22
{
33
using NUnit.Framework;
4+
using Shouldly;
45

56
[TestFixture]
67
public class StringExtensionsFacts
@@ -13,8 +14,8 @@ public class StringExtensionsFacts
1314
public void TheIsPullRequestMethod(string input, bool expectedValue)
1415
{
1516
var actualValue = input.IsPullRequest();
16-
17-
Assert.AreEqual(expectedValue, actualValue);
17+
18+
actualValue.ShouldBe(expectedValue);
1819
}
1920
}
2021
}

src/GitTools.Core.Tests/GitTools.Core.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
<HintPath>..\..\lib\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
4040
<Private>True</Private>
4141
</Reference>
42+
<Reference Include="Shouldly, Version=2.5.0.0, Culture=neutral, PublicKeyToken=6042cbcb05cbc941, processorArchitecture=MSIL">
43+
<HintPath>..\..\lib\Shouldly.2.5.0\lib\net40\Shouldly.dll</HintPath>
44+
<Private>True</Private>
45+
</Reference>
4246
<Reference Include="System" />
4347
<Reference Include="System.Core" />
4448
<Reference Include="System.Xml.Linq" />

src/GitTools.Core.Tests/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
<package id="Fody" version="1.28.3" targetFramework="net45" developmentDependency="true" />
44
<package id="ModuleInit.Fody" version="1.5.6.0" targetFramework="net45" developmentDependency="true" />
55
<package id="NUnit" version="2.6.4" targetFramework="net45" />
6+
<package id="Shouldly" version="2.5.0" targetFramework="net45" />
67
</packages>

0 commit comments

Comments
 (0)