Skip to content

Commit

Permalink
chore: Adjust for WinUI build
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed Mar 26, 2024
1 parent 8e36c71 commit ba30cd6
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@ public async Task TestInitialsTextBlockFontFamily()
var personPicture = new MyPersonPicture();
await UITestHelper.Load(personPicture);

#if WINAPPSDK
string symbolsFontName = "Segoe MDL2 Assets";
#else
string symbolsFontName = "ms-appx:///Uno.Fonts.Fluent/Fonts/uno-fluentui-assets.ttf";
#endif

var fontFamilyLight = personPicture.InitialsTextBlock.FontFamily.Source;
Assert.AreEqual(FeatureConfiguration.Font.SymbolsFont, fontFamilyLight);
Assert.AreEqual(symbolsFontName, fontFamilyLight);

using (ThemeHelper.UseDarkTheme())
{
Expand Down

0 comments on commit ba30cd6

Please sign in to comment.