public void ToastService_ClearAll_should_set_IsRemove() { _toastService.ShowToast(new ToastSettings()); _toastService.ShowToast(new ToastSettings()); var id = _toastService.ShowToast(new ToastSettings()); _toastService.ClearAll(); Assert.IsNotNull(_toastService.Toasts); Assert.AreEqual(3, _toastService.AllToasts.Count()); Assert.AreEqual(3, _toastService.Toasts.Count()); foreach (var item in _toastService.Toasts) { Assert.AreEqual(true, item.IsRemove); } }