diff --git a/components/MarkdownTextBlock/tests/ExampleMarkdownTextBlockTestClass.cs b/components/MarkdownTextBlock/tests/ExampleMarkdownTextBlockTestClass.cs index e46bc89c..2c7db300 100644 --- a/components/MarkdownTextBlock/tests/ExampleMarkdownTextBlockTestClass.cs +++ b/components/MarkdownTextBlock/tests/ExampleMarkdownTextBlockTestClass.cs @@ -132,26 +132,21 @@ public async Task ComplexAsyncLoadUIExampleWithoutDispatcherTest() Assert.IsFalse(component.IsLoaded); } - // You can still use the UIThreadTestMethod to remove the extra layer for the dispatcher as well: - [TestMethod] - public async Task ComplexAsyncLoadUIExampleWithCustomConfigTest() + [UIThreadTestMethod] + public async Task MarkdownTextBlockEmptyTextValueTest() { - await EnqueueAsync(async () => + var component = new MarkdownTextBlock { - var component = new MarkdownTextBlock - { - Config = new MarkdownConfig() - }; - Assert.IsNotNull(component); - Assert.IsFalse(component.IsLoaded); - - await LoadTestContentAsync(component); + Config = new() + }; - Assert.IsTrue(component.IsLoaded); + Assert.IsNotNull(component); + Assert.IsFalse(component.IsLoaded); - await UnloadTestContentAsync(component); + await LoadTestContentAsync(component); + Assert.IsTrue(component.IsLoaded); - Assert.IsFalse(component.IsLoaded); - }); + await UnloadTestContentAsync(component); + Assert.IsFalse(component.IsLoaded); } }