Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c07cb44

Browse files
authored
[browser] Remove ValueTask interop test placeholders (#94560)
1 parent 9137cb4 commit c07cb44

File tree

2 files changed

+0
-78
lines changed
  • src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.Legacy.UnitTests/System/Runtime/InteropServices/JavaScript

2 files changed

+0
-78
lines changed

src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.Legacy.UnitTests/System/Runtime/InteropServices/JavaScript/HelperMarshal.cs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -452,38 +452,6 @@ public static async Task FailedAsynchronousTask()
452452
await Task.Yield();
453453
throw new Exception();
454454
}
455-
456-
public static async ValueTask AsynchronousValueTask()
457-
{
458-
await Task.Yield();
459-
}
460-
461-
public static ValueTask SynchronousValueTask()
462-
{
463-
return ValueTask.CompletedTask;
464-
}
465-
466-
public static ValueTask<int> SynchronousValueTaskInt(int i)
467-
{
468-
return ValueTask.FromResult(i);
469-
}
470-
471-
public static async ValueTask<int> AsynchronousValueTaskInt(int i)
472-
{
473-
await Task.Yield();
474-
return i;
475-
}
476-
477-
public static ValueTask FailedSynchronousValueTask()
478-
{
479-
return ValueTask.FromException(new Exception());
480-
}
481-
482-
public static async ValueTask FailedAsynchronousValueTask()
483-
{
484-
await Task.Yield();
485-
throw new Exception();
486-
}
487455
}
488456

489457
public enum TestEnum : uint {

src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.Legacy.UnitTests/System/Runtime/InteropServices/JavaScript/MarshalTests.cs

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -787,51 +787,5 @@ public static async Task MarshalFailedAsynchronousTask()
787787
bool success = await MarshalTask("FailedAsynchronousTask");
788788
Assert.False(success, "FailedAsynchronousTask didn't failed.");
789789
}
790-
791-
[Fact]
792-
[ActiveIssue("https://github.com/dotnet/runtime/issues/61368")]
793-
public static async Task MarshalSynchronousValueTaskDoesNotWorkYet()
794-
{
795-
bool success = await MarshalTask("SynchronousValueTask");
796-
Assert.True(success, "SynchronousValueTask didn't succeeded.");
797-
}
798-
799-
[Fact]
800-
[ActiveIssue("https://github.com/dotnet/runtime/issues/61368")]
801-
public static async Task MarshalAsynchronousValueTaskDoesNotWorkYet()
802-
{
803-
bool success = await MarshalTask("AsynchronousValueTask");
804-
Assert.True(success, "AsynchronousValueTask didn't succeeded.");
805-
}
806-
807-
[Fact]
808-
[ActiveIssue("https://github.com/dotnet/runtime/issues/61368")]
809-
public static Task MarshalSynchronousValueTaskIntDoesNotWorkYet()
810-
{
811-
return MarshalTaskReturningInt("SynchronousValueTaskInt");
812-
}
813-
814-
[Fact]
815-
[ActiveIssue("https://github.com/dotnet/runtime/issues/61368")]
816-
public static Task MarshalAsynchronousValueTaskIntDoesNotWorkYet()
817-
{
818-
return MarshalTaskReturningInt("AsynchronousValueTaskInt");
819-
}
820-
821-
[Fact]
822-
[ActiveIssue("https://github.com/dotnet/runtime/issues/61368")]
823-
public static async Task MarshalFailedSynchronousValueTaskDoesNotWorkYet()
824-
{
825-
bool success = await MarshalTask("FailedSynchronousValueTask");
826-
Assert.False(success, "FailedSynchronousValueTask didn't failed.");
827-
}
828-
829-
[Fact]
830-
[ActiveIssue("https://github.com/dotnet/runtime/issues/61368")]
831-
public static async Task MarshalFailedAsynchronousValueTaskDoesNotWorkYet()
832-
{
833-
bool success = await MarshalTask("FailedAsynchronousValueTask");
834-
Assert.False(success, "FailedAsynchronousValueTask didn't failed.");
835-
}
836790
}
837791
}

0 commit comments

Comments
 (0)