public void TempExtremeMax() { clsObservation TestObservation = new clsObservation(); string SomeTemp = "50.00"; string ExpectedReturnMsg = "The temperature can only be between 27 minimum to 45 max"; string TempErrorMsg = TestObservation.ValidateTemperature(SomeTemp); Assert.AreEqual(TempErrorMsg, ExpectedReturnMsg); }
public void TempMax() { clsObservation TestObservation = new clsObservation(); string SomeTemp = "45.00"; string ExpectedReturnMsg = ""; string TempErrorMsg = TestObservation.ValidateTemperature(SomeTemp); Assert.AreEqual(TempErrorMsg, ExpectedReturnMsg); }