Пример #1
0
        public void TestReadTransportersDistance2()
        {
            BestTransporterView btr     = new BestTransporterView();
            Tuple <int, string> tupDist = btr.ValidateDistance("03");

            Assert.IsTrue(tupDist.Item1 == 3, "Distance should be 3 miles");
            Assert.IsTrue(tupDist.Item2.Length == 0, "should be no error with zero length error msg");
        }
Пример #2
0
        public void TestReadTransportersDistanceZeroTest()
        {
            BestTransporterView btr     = new BestTransporterView();
            Tuple <int, string> tupDist = btr.ValidateDistance("-3");

            Assert.IsTrue(tupDist.Item1 == -1, "Distance should be -1 miles");
            Assert.IsTrue(tupDist.Item2.Length > 0, "should be an error msg");
        }