Browse Source
Merge pull request #11744 from stogle/bugfix/avaloniatestattribute
Fix #11677 AvaloniaTestAttribute base class
pull/11798/head
Max Katz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
src/Headless/Avalonia.Headless.NUnit/AvaloniaTest.cs
-
tests/Avalonia.Headless.UnitTests/ThreadingTests.cs
|
|
|
@ -13,7 +13,7 @@ namespace Avalonia.Headless.NUnit; |
|
|
|
/// such that awaited expressions resume on the test's "main thread".
|
|
|
|
/// </summary>
|
|
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)] |
|
|
|
public sealed class AvaloniaTestAttribute : TestCaseAttribute, IWrapSetUpTearDown |
|
|
|
public sealed class AvaloniaTestAttribute : TestAttribute, IWrapSetUpTearDown |
|
|
|
{ |
|
|
|
public TestCommand Wrap(TestCommand command) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -18,7 +18,7 @@ public class ThreadingTests |
|
|
|
} |
|
|
|
|
|
|
|
#if NUNIT
|
|
|
|
[AvaloniaTest(Ignore = "This test should always fail, enable to test if it fails")] |
|
|
|
[AvaloniaTest, Ignore("This test should always fail, enable to test if it fails")] |
|
|
|
#elif XUNIT
|
|
|
|
[AvaloniaFact(Skip = "This test should always fail, enable to test if it fails")] |
|
|
|
#endif
|
|
|
|
|