Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bording committed Oct 10, 2017
1 parent af16ddb commit 227d720
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/GitVersionCore.Tests/AssemblyInfoFileUpdaterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public class AssemblyInfoFileUpdaterTests
{
[SetUp]
public void SetLoggers()
public void Setup()
{
ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestCaseAttribute>();
}
Expand Down
2 changes: 2 additions & 0 deletions src/GitVersionCore.Tests/ConfigProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public void Setup()
fileSystem = new TestFileSystem();
repoPath = DefaultRepoPath;
workingPath = DefaultWorkingPath;

ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestAttribute>();
}

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace GitVersionCore.Tests
public class GitVersionInformationGeneratorTests
{
[SetUp]
public void SetLoggers()
public void Setup()
{
ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestCaseAttribute>();
}
Expand Down
6 changes: 6 additions & 0 deletions src/GitVersionCore.Tests/Init/InitScenarios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
[TestFixture]
public class InitScenarios
{
[SetUp]
public void Setup()
{
ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestAttribute>();
}

[Test]
[Category("NoMono")]
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
Expand Down
6 changes: 6 additions & 0 deletions src/GitVersionCore.Tests/JsonVersionBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
[TestFixture]
public class JsonVersionBuilderTests
{
[SetUp]
public void Setup()
{
ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestAttribute>();
}

[Test]
[Category("NoMono")]
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
Expand Down
6 changes: 6 additions & 0 deletions src/GitVersionCore.Tests/VariableProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
[TestFixture]
public class VariableProviderTests
{
[SetUp]
public void Setup()
{
ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestAttribute>();
}

[Test]
[Category("NoMono")]
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
Expand Down

0 comments on commit 227d720

Please sign in to comment.