public void CustomNotificationTemplateSelectorTest() { var customNotifier = new CustomNotifier(new TestScreen { bounds = new Rect(0, 0, 1000, 500) }); var selector = new TestTemplateSelector(); customNotifier.ContentTemplateSelector = selector; var toast = new CustomNotification(null, customNotifier); WaitWithDispatcher(customNotifier.ShowAsync(toast, 1)); Assert.IsTrue(selector.Called); }