File tree Expand file tree Collapse file tree 1 file changed +11
-16
lines changed
components/MarkdownTextBlock/tests Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -132,26 +132,21 @@ public async Task ComplexAsyncLoadUIExampleWithoutDispatcherTest()
132
132
Assert . IsFalse ( component . IsLoaded ) ;
133
133
}
134
134
135
- // You can still use the UIThreadTestMethod to remove the extra layer for the dispatcher as well:
136
- [ TestMethod ]
137
- public async Task ComplexAsyncLoadUIExampleWithCustomConfigTest ( )
135
+ [ UIThreadTestMethod ]
136
+ public async Task MarkdownTextBlockEmptyTextValueTest ( )
138
137
{
139
- await EnqueueAsync ( async ( ) =>
138
+ var component = new MarkdownTextBlock
140
139
{
141
- var component = new MarkdownTextBlock
142
- {
143
- Config = new MarkdownConfig ( )
144
- } ;
145
- Assert . IsNotNull ( component ) ;
146
- Assert . IsFalse ( component . IsLoaded ) ;
147
-
148
- await LoadTestContentAsync ( component ) ;
140
+ Config = new ( )
141
+ } ;
149
142
150
- Assert . IsTrue ( component . IsLoaded ) ;
143
+ Assert . IsNotNull ( component ) ;
144
+ Assert . IsFalse ( component . IsLoaded ) ;
151
145
152
- await UnloadTestContentAsync ( component ) ;
146
+ await LoadTestContentAsync ( component ) ;
147
+ Assert . IsTrue ( component . IsLoaded ) ;
153
148
154
- Assert . IsFalse ( component . IsLoaded ) ;
155
- } ) ;
149
+ await UnloadTestContentAsync ( component ) ;
150
+ Assert . IsFalse ( component . IsLoaded ) ;
156
151
}
157
152
}
You can’t perform that action at this time.
0 commit comments