Esempio n. 1
0
        public void TestTax()
        {
            ResidentPayRecord p           = new ResidentPayRecord(1, hours, rates);
            double            ActualTax   = p.Tax;
            double            ExpectedTax = TaxCalculator.CalculateResidentialTax(p.Gross);

            Assert.AreEqual(ExpectedTax, ActualTax);
        }
Esempio n. 2
0
        public void TestNet()
        {
            ResidentPayRecord p           = new ResidentPayRecord(1, hours, rates);
            double            ExpectedNet = p.Gross - p.Tax;
            double            ActualNet   = p.Net;

            Assert.AreEqual(ActualNet, ExpectedNet);
        }
Esempio n. 3
0
        public void TestGross()
        {
            ResidentPayRecord p             = new ResidentPayRecord(1, hours, rates);
            double            ExpectedGross = 652.00;
            double            ActualGross   = p.Gross;

            Assert.AreEqual(ExpectedGross, ActualGross);
        }