public void PassErrorParam_ShouldSaveErrorValueToErrorParamObj() { //Arrange var service = new ErrorService(); string error = "Some error occurred"; //Act service.PassErrorParam(error); //Assert Assert.Equal(error, service.ErrorParm); }