mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-01 02:45:22 -08:00
Fix dotnet-trx parsing of tests with custom display names
This commit is contained in:
@@ -7,7 +7,7 @@ namespace DotnetTests.XUnitTests
|
||||
{
|
||||
public class CalculatorTests
|
||||
{
|
||||
private readonly Calculator _calculator = new Calculator();
|
||||
private readonly Calculator _calculator = new Calculator();
|
||||
|
||||
[Fact]
|
||||
public void Passing_Test()
|
||||
@@ -50,5 +50,21 @@ namespace DotnetTests.XUnitTests
|
||||
{
|
||||
throw new Exception("Test");
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(2)]
|
||||
[InlineData(3)]
|
||||
public void Is_Even_Number(int i)
|
||||
{
|
||||
Assert.True(i % 2 == 0);
|
||||
}
|
||||
|
||||
[Theory(DisplayName = "Should be even number")]
|
||||
[InlineData(2)]
|
||||
[InlineData(3)]
|
||||
public void Theory_With_Custom_Name(int i)
|
||||
{
|
||||
Assert.True(i % 2 == 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user