public void WeightMax() { clsObservation TestObservation = new clsObservation(); string SomeWeight = "300.00"; string ExpectedReturnMsg = ""; string WeightErrorMsg = TestObservation.ValidateWeight(SomeWeight); Assert.AreEqual(WeightErrorMsg, ExpectedReturnMsg); }
public void WeightMinLessOne() { clsObservation TestObservation = new clsObservation(); string SomeWeight = "19"; string ExpectedReturnMsg = "The weight can only be between 20kg minimum to 300kg max"; string WeightErrorMsg = TestObservation.ValidateWeight(SomeWeight); Assert.AreEqual(WeightErrorMsg, ExpectedReturnMsg); }