File tree Expand file tree Collapse file tree 4 files changed +9
-20
lines changed
src/NerdBank.GitVersioning.Tests Expand file tree Collapse file tree 4 files changed +9
-20
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 66using Nerdbank . GitVersioning . Tasks ;
77using Xunit ;
88
9- public class AssemblyInfoTest
9+ public class AssemblyInfoTest : IClassFixture < MSBuildFixture >
1010{
11- public AssemblyInfoTest ( )
12- {
13- MSBuildExtensions . LoadMSBuild ( ) ;
14- }
15-
1611 [ Fact ]
1712 public void FSharpGenerator ( )
1813 {
Original file line number Diff line number Diff line change 2323using Xunit . Abstractions ;
2424using Version = System . Version ;
2525
26- public class BuildIntegrationTests : RepoTestBase
26+ public class BuildIntegrationTests : RepoTestBase , IClassFixture < MSBuildFixture >
2727{
2828 private const string GitVersioningTargetsFileName = "NerdBank.GitVersioning.targets" ;
2929 private const string UnitTestCloudBuildPrefix = "UnitTest: " ;
@@ -48,8 +48,6 @@ public class BuildIntegrationTests : RepoTestBase
4848 public BuildIntegrationTests ( ITestOutputHelper logger )
4949 : base ( logger )
5050 {
51- MSBuildExtensions . LoadMSBuild ( ) ;
52-
5351 int seed = ( int ) DateTime . Now . Ticks ;
5452 this . random = new Random ( seed ) ;
5553 this . Logger . WriteLine ( "Random seed: {0}" , seed ) ;
Original file line number Diff line number Diff line change 1+ public class MSBuildFixture
2+ {
3+ public MSBuildFixture ( )
4+ {
5+ MSBuildExtensions . LoadMSBuild ( ) ;
6+ }
7+ }
You can’t perform that action at this time.
0 commit comments