File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 22// The .NET Foundation licenses this file to you under the MIT license.
33// See the LICENSE file in the project root for more information.
44
5+ using Microsoft . VisualStudio . TestTools . UnitTesting . Logging ;
56using System ;
67using UnitTests . Extensions ;
78using Windows . ApplicationModel ;
@@ -90,6 +91,17 @@ protected override void OnLaunched(LaunchActivatedEventArgs e)
9091 // TODO: Load state from previously suspended application
9192 }
9293
94+ Logger . LogMessage ( "Looking for DefaultRichEditBoxStyle..." ) ;
95+ if ( ! Resources . TryGetValue ( "DefaultRichEditBoxStyle" , out var value ) )
96+ {
97+ Logger . LogMessage ( "ERROR: Couldn't find DefaultRichEditBoxStyle in WinUI!" ) ;
98+ throw new ApplicationException ( "Couldn't find DefaultRichEditBoxStyle resource." ) ;
99+ }
100+ else
101+ {
102+ Logger . LogMessage ( "FOUND!" ) ;
103+ }
104+
93105 // Place the frame in the current Window
94106 Window . Current . Content = rootFrame ;
95107 }
You can’t perform that action at this time.
0 commit comments