Skip to content

Commit 227d720

Browse files
committed
Fix failing tests
1 parent af16ddb commit 227d720

File tree

6 files changed

+22
-2
lines changed

6 files changed

+22
-2
lines changed

src/GitVersionCore.Tests/AssemblyInfoFileUpdaterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
public class AssemblyInfoFileUpdaterTests
1414
{
1515
[SetUp]
16-
public void SetLoggers()
16+
public void Setup()
1717
{
1818
ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestCaseAttribute>();
1919
}

src/GitVersionCore.Tests/ConfigProviderTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public void Setup()
2626
fileSystem = new TestFileSystem();
2727
repoPath = DefaultRepoPath;
2828
workingPath = DefaultWorkingPath;
29+
30+
ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestAttribute>();
2931
}
3032

3133
[Test]

src/GitVersionCore.Tests/GitVersionInformationGeneratorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace GitVersionCore.Tests
1414
public class GitVersionInformationGeneratorTests
1515
{
1616
[SetUp]
17-
public void SetLoggers()
17+
public void Setup()
1818
{
1919
ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestCaseAttribute>();
2020
}

src/GitVersionCore.Tests/Init/InitScenarios.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
[TestFixture]
1212
public class InitScenarios
1313
{
14+
[SetUp]
15+
public void Setup()
16+
{
17+
ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestAttribute>();
18+
}
19+
1420
[Test]
1521
[Category("NoMono")]
1622
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]

src/GitVersionCore.Tests/JsonVersionBuilderTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
[TestFixture]
88
public class JsonVersionBuilderTests
99
{
10+
[SetUp]
11+
public void Setup()
12+
{
13+
ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestAttribute>();
14+
}
15+
1016
[Test]
1117
[Category("NoMono")]
1218
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]

src/GitVersionCore.Tests/VariableProviderTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
[TestFixture]
88
public class VariableProviderTests
99
{
10+
[SetUp]
11+
public void Setup()
12+
{
13+
ShouldlyConfiguration.ShouldMatchApprovedDefaults.LocateTestMethodUsingAttribute<TestAttribute>();
14+
}
15+
1016
[Test]
1117
[Category("NoMono")]
1218
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]

0 commit comments

Comments
 (0)