public void AddNotification_Must_return_in_GetNotifications() { //Arrange var notificationBase = new NotificationBaseClass1(); notificationBase.AddNotification(nameof(NotificationBaseTest), Constants.TEXT_TO_COMPARE); //Act var resultNotification = notificationBase.GetNotifications()[0]; //Assert Assert.Equal($"Error on {nameof(NotificationBaseTest)}:{Constants.TEXT_TO_COMPARE}", resultNotification.ErrorMessage); }
public void AddNotifications_Must_return_in_GetNotifications() { //Arrange var notificationBase = new NotificationBaseClass1(); var notification = new Notification(nameof(NotificationBaseTest), Constants.TEXT_TO_COMPARE); notificationBase.AddNotifications(new List <Notification>() { notification }); //Act var resultNotification = notificationBase.GetNotifications()[0]; //Assert Assert.Equal(notification, resultNotification); }