You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[assembly: AvaloniaTestApplication(typeof(TestAppBuilder))]
public static class TestAppBuilder
{
public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure<App>()
.UseSkia()
.UseHeadless(new()
{
UseHeadlessDrawing = false
});
}
public class CalculatorTests
{
[AvaloniaTest]
public void Should_Add_Numbers()
{
Assert.That(TestContext.CurrentContext.Test.MethodName, Is.EqualTo("Should_Add_Numbers"));
}
[AvaloniaTest]
public void Cannot_Divide_By_Zero()
{
Assert.That(TestContext.CurrentContext.Test.MethodName, Is.EqualTo("Cannot_Divide_By_Zero"));
}
}
result
Expected string length 18 but was 21. Strings differ at index 0.
Expected: "Should_Add_Numbers"
But was: "Cannot_Divide_By_Zero"
-----------^
at TestableApp.Headless.NUnit.CalculatorTests.Should_Add_Numbers() in D:\Code\VerifyTests\Verify.Avalonia\src\NUnitTests\CalculatorTests.cs:line 13
The text was updated successfully, but these errors were encountered:
result
The text was updated successfully, but these errors were encountered: