Closed JayBazuzi closed 1 month ago
I think both of these should be considered part of Avalonia. so u could get the same errors even if u were not using Verify. so i agree it should give a better error, but that should be a change in the Avalonia code base
let me expand on that a bit. the point of Avalonia.Headless.NUnit and Avalonia.Headless.XUnit is to enabling rendering for the purposes of tests. if people are using the wrong setup in such a way that is it not possible to render, then Avalonia should, if possible, communicate what is wrong with that setup
Ok, that makes sense.
The setup process for using Verify.Avalonia isn't obvious, and when the user gets it wrong it's hard to diagnose. Can Verify.Avalonia provide better help messages?
AvaloniaFact
If I write
[Fact]
instead of[AvaloniaFact]
, my test fails with this error:Styles
If I forget
Styles.Add(new FluentTheme())
my test fails with this error: