-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff67074
commit a97c4e0
Showing
23 changed files
with
242 additions
and
671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...icrosoft.DotNet.Interactive.CSharpProject.Tests/CollectionDefinitionForPrebuildFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using Xunit; | ||
|
||
namespace Microsoft.DotNet.Interactive.CSharpProject.Tests; | ||
|
||
[CollectionDefinition(nameof(PrebuildFixture), DisableParallelization = true)] | ||
public class CollectionDefinitionForPrebuildFixture : ICollectionFixture<PrebuildFixture> | ||
{ | ||
// This class has no code, and is never created. Its purpose is simply | ||
// to be the place to apply [CollectionDefinition] and all the | ||
// ICollectionFixture<> interfaces. | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Microsoft.DotNet.Interactive.CSharpProject.Tests/PrebuildFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System.Threading.Tasks; | ||
using Microsoft.DotNet.Interactive.CSharpProject.Build; | ||
using Xunit; | ||
|
||
namespace Microsoft.DotNet.Interactive.CSharpProject.Tests; | ||
|
||
public class PrebuildFixture : IAsyncLifetime | ||
{ | ||
public async Task InitializeAsync() | ||
{ | ||
var consolePrebuild = await Prebuild.GetOrCreateConsolePrebuildAsync(true); | ||
await consolePrebuild.EnsureReadyAsync(); | ||
|
||
consolePrebuild = await Prebuild.GetOrCreateConsolePrebuildAsync(false); | ||
await consolePrebuild.EnsureReadyAsync(); | ||
Prebuild = consolePrebuild; | ||
} | ||
|
||
public Prebuild Prebuild { get; private set; } | ||
|
||
public Task DisposeAsync() | ||
{ | ||
return Task.CompletedTask; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+17.6 KB
(140%)
...rosoft.DotNet.Interactive.CSharpProject.Tests/RoslynWorkspaceServerConsoleProjectTests.cs
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
src/Microsoft.DotNet.Interactive.CSharpProject.Tests/RoslynWorkspaceServerTestsCore.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.