コード例 #1
0
        public void SPU1DayTest()
        {
            SPUNextDay myShipping = new SPUNextDay();

            Assert.AreEqual(7.5, myShipping.CalculateRate(100, 16));
            Assert.AreEqual(7.5, myShipping.CalculateRate(10, 160));
        }
コード例 #2
0
        public void SPUNextDayTest()
        {
            SPUNextDay SPU1  = new SPUNextDay();
            double     rate1 = SPU1.CalculateRate(333, 3 * 16);
            double     rate2 = SPU1.CalculateRate(333, 333 * 16);
            double     rate3 = SPU1.CalculateRate(33, 33 * 16);

            Assert.AreEqual("$74.93", rate1.ToString("$0.00"));
            Assert.AreEqual("$8316.68", rate2.ToString("$0.00"));
            Assert.AreEqual("$81.68", rate3.ToString("$0.00"));
        }
コード例 #3
0
        public void SPUNextTest()
        {
            SPUNextDay sPUNextTest = new SPUNextDay();

            Assert.AreEqual(75, sPUNextTest.CalculateRate(100, 10));
        }