public void VMNotificator_AddError_Must_Add_Error_By_String() { //Arrange var errorMessage = "Error Message"; var errorCode = "001"; //Act _notificator.AddError(errorMessage, errorCode); //Assert var result = _notificator.GetErrors(); result.Should().Contain(new Notification(errorMessage, errorCode)); }