Open
Description
Description
I've converted an UWP test application using xUnit to .Net 9 + AOT.
The xUnit tests are not discovered (and not run).
Steps To Reproduce
- Create an UWP test application
- Import xUnit nuget package
- Convert the project to a .Net 9 project
- Add an MSTest class:
[TestClass]
public class msUnitTest
{
[TestMethod]
public void Test()
{
var a = 10;
Assert.AreEqual(10, a);
}
}
- Add an xUnit test class
public class xUnitTest
{
[Fact]
public void Test()
{
var a = 10;
a.Should().Be(10);
}
}
- Run the tests
Only the msTest.Test
test is run.
Expected Behavior
All the tests should run.
Version Info
TargetFramework = net9.0-windows10.0.26100.0
Microsoft.NET.Test.Sdk = 17.14.0-preview-25107-01
MSTest = 3.8.2
xunit = 2.9.3
xunit.runner.visualstudio = 3.0.2
Additional Context
Sample test application: UnitTests.zip
Metadata
Metadata
Assignees
Labels
No labels