diff --git a/dev/PersonPicture/APITests/PersonPictureTests.cs b/dev/PersonPicture/APITests/PersonPictureTests.cs index 6754f0929a..30a50f77ce 100644 --- a/dev/PersonPicture/APITests/PersonPictureTests.cs +++ b/dev/PersonPicture/APITests/PersonPictureTests.cs @@ -190,5 +190,18 @@ public void VerifyVSMStatesForPhotosAndInitials() Verify.AreEqual(initialsTextBlock.Text, "\xE716"); }); } + + [TestMethod] + public void VerifyPersonPictureVisualTree() + { + PersonPicture personPicture = null; + RunOnUIThread.Execute(() => + { + personPicture = new PersonPicture { Initials="LC", Width=100, Height=100 }; + }); + TestUtilities.SetAsVisualTreeRoot(personPicture); + + VisualTreeTestHelper.VerifyVisualTree(root: personPicture, verificationFileNamePrefix: "PersonPicture"); + } } } diff --git a/dev/PersonPicture/PersonPicture.xaml b/dev/PersonPicture/PersonPicture.xaml index 46162bc3de..cc4770a5d4 100644 --- a/dev/PersonPicture/PersonPicture.xaml +++ b/dev/PersonPicture/PersonPicture.xaml @@ -8,10 +8,10 @@