Exemplo n.º 1
0
        public void WeightMax()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomeWeight        = "300.00";
            string         ExpectedReturnMsg = "";
            string         WeightErrorMsg    = TestObservation.ValidateWeight(SomeWeight);

            Assert.AreEqual(WeightErrorMsg, ExpectedReturnMsg);
        }
Exemplo n.º 2
0
        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);
        }