Skip to content

Commit 374a2b9

Browse files
committed
Run tests on Windows only
If it's possible to write a test that works on OSX, Linux, and Windows with both Uris and file paths, I don't know what it is!
1 parent d01e832 commit 374a2b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Razor/test/Microsoft.AspNetCore.Razor.LanguageServer.Test/DocumentPresentation/TextDocumentUriPresentationEndpointTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer.DocumentPresentation;
2525

2626
public class TextDocumentUriPresentationEndpointTests(ITestOutputHelper testOutput) : LanguageServerTestBase(testOutput)
2727
{
28-
[Fact]
28+
[OSSkipConditionFact(["OSX", "Linux"])]
2929
public async Task Handle_SimpleComponent_ReturnsResult()
3030
{
3131
// Arrange
@@ -87,7 +87,7 @@ public async Task Handle_SimpleComponent_ReturnsResult()
8787
Assert.Equal("<MyTagHelper />", result!.DocumentChanges!.Value.First[0].Edits[0].NewText);
8888
}
8989

90-
[Fact]
90+
[OSSkipConditionFact(["OSX", "Linux"])]
9191
public async Task Handle_SimpleComponentWithChildFile_ReturnsResult()
9292
{
9393
// Arrange
@@ -154,7 +154,7 @@ public async Task Handle_SimpleComponentWithChildFile_ReturnsResult()
154154
Assert.Equal("<MyTagHelper />", result!.DocumentChanges!.Value.First[0].Edits[0].NewText);
155155
}
156156

157-
[Fact]
157+
[OSSkipConditionFact(["OSX", "Linux"])]
158158
public async Task Handle_ComponentWithRequiredAttribute_ReturnsResult()
159159
{
160160
// Arrange
@@ -383,7 +383,7 @@ public async Task Handle_NotComponent_ReturnsNull()
383383
Assert.Null(result);
384384
}
385385

386-
[Fact]
386+
[OSSkipConditionFact(["OSX", "Linux"])]
387387
public async Task Handle_ComponentWithNestedFiles_ReturnsResult()
388388
{
389389
// Arrange

0 commit comments

Comments
 (0)