public void ReadProbabilityAssessmentInput_ProbabilityAssessmentInputNull_ThrowsArgumentNullException() { // Setup var entity = new PipingFailureMechanismMetaEntity(); // Call void Call() => entity.ReadProbabilityAssessmentInput(null); // Assert var exception = Assert.Throws <ArgumentNullException>(Call); Assert.AreEqual("probabilityAssessmentInput", exception.ParamName); }
public void ReadProbabilityAssessmentInput_ValidParameters_SetPipingProbabilityAssessmentInputProperties() { // Setup var inputToUpdate = new PipingProbabilityAssessmentInput(); var entity = new PipingFailureMechanismMetaEntity { A = new Random(31).NextDouble() }; // Call entity.ReadProbabilityAssessmentInput(inputToUpdate); // Assert Assert.AreEqual(entity.A, inputToUpdate.A); }