diff --git a/samples/Playground/Playground.csproj b/samples/Playground/Playground.csproj
index 9ab1ef9c8..947f8916f 100644
--- a/samples/Playground/Playground.csproj
+++ b/samples/Playground/Playground.csproj
@@ -5,11 +5,21 @@
net8.0
enable
enable
+ false
+ $(NoWarn);NETSDK1023
+
+
+
+
+
+
+ Always
+
diff --git a/samples/Playground/Program.cs b/samples/Playground/Program.cs
index 5c2f7beea..28ec98d62 100644
--- a/samples/Playground/Program.cs
+++ b/samples/Playground/Program.cs
@@ -17,6 +17,9 @@ public class Program
var testApplicationBuilder = await TestApplication.CreateBuilderAsync(args);
testApplicationBuilder.AddMSTest(() => new[] { Assembly.GetEntryAssembly()! });
+
+ // Enable Trx
+ // testApplicationBuilder.AddTrxReportProvider();
using var testApplication = await testApplicationBuilder.BuildAsync();
return await testApplication.RunAsync();
}
diff --git a/samples/Playground/Tests.cs b/samples/Playground/Tests.cs
index 3783979f9..4c56d5579 100644
--- a/samples/Playground/Tests.cs
+++ b/samples/Playground/Tests.cs
@@ -5,7 +5,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-[assembly: Parallelize(Scope = ExecutionScope.ClassLevel, Workers = 0)]
+[assembly: Parallelize(Scope = ExecutionScope.MethodLevel, Workers = 0)]
namespace Playground;
@@ -13,8 +13,7 @@ namespace Playground;
public class TestClass
{
[TestMethod]
- public async Task Test1()
+ public void Test()
{
- await Task.Delay(1000);
}
}
diff --git a/samples/Playground/config.runsettings b/samples/Playground/config.runsettings
new file mode 100644
index 000000000..ad8d6a882
--- /dev/null
+++ b/samples/Playground/config.runsettings
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file