Пример #1
0
        public void CalculateParcelCostTestNegativeSizeBox()
        {
            Parcel NegativesizeBox = new Parcel(-200, -300, 150, 2);
            var    output          = NegativesizeBox.CalculateParcelCost();

            Assert.AreEqual(_invalidPrice, output, "Negative Size Parcel Test Passed");
        }
Пример #2
0
        public void CalculateParcelCostTestAnotherBox()
        {
            Parcel AnotherBox = new Parcel(20, 30, 150, -2);
            var    output     = AnotherBox.CalculateParcelCost();

            Assert.AreEqual(_invalidPrice, output, "AnotherBox Parcel Test Passed");
        }
Пример #3
0
        public void CalculateParcelCostTestOverweight2()
        {
            Parcel Overweight2 = new Parcel(200, 300, 150, 25);
            var    output      = Overweight2.CalculateParcelCost();

            Assert.AreEqual(_smallPrice, output, "Overweight2 Parcel Test Passed");
        }
Пример #4
0
        public void CalculateParcelCostTestOversize()
        {
            Parcel OverSize = new Parcel(500, 300, 200, 12.0);
            var    output   = OverSize.CalculateParcelCost();

            Assert.AreEqual(_invalidPrice, output, "Oversize Parcel Test Passed");
        }
Пример #5
0
        public void CalculateParcelCostTestOverweight()
        {
            Parcel OverWeight = new Parcel(300, 400, 150, 60);
            var    output     = OverWeight.CalculateParcelCost();

            Assert.AreEqual(_invalidPrice, output, "Overweight Parcel Test Passed");
        }
Пример #6
0
        public void CalculateParcelCostTestLarge()
        {
            Parcel Large  = new Parcel(400, 600, 250, 7.05);
            var    output = Large.CalculateParcelCost();

            Assert.AreEqual(_largePrice, output, "Large Parcel Test Passed");
        }
Пример #7
0
        public void CalculateParcelCostTestMedium()
        {
            Parcel Medium = new Parcel(300, 400, 200, 5.5);
            var    output = Medium.CalculateParcelCost();

            Assert.AreEqual(_mediumPrice, output, "Medium Parcel Test Passed");
        }
Пример #8
0
        public void CalculateParcelCostTestSmall1()
        {
            Parcel Small1 = new Parcel(150, 250, 120, 4.5);
            var    output = Small1.CalculateParcelCost();

            Assert.AreEqual(_smallPrice, output, "Small 1 Parcel Test Passed");
        }
Пример #9
0
        public void CalculateParcelCostTestSmall()
        {
            Parcel Small  = new Parcel(200, 300, 150, 2.5);
            var    output = Small.CalculateParcelCost();

            Assert.AreEqual(_smallPrice, output, "Small Parcel Test Passed");
        }