Beispiel #1
0
        public void TestNetoCalc()
        {
            Program program = new SimpleSalaries.Program();

            Assert.AreEqual("764", SimpleSalaries.Program.CalculateFromFile("G1000"));

            Assert.AreEqual("547", SimpleSalaries.Program.CalculateFromFile("N547"));

            Assert.AreEqual("invalid", SimpleSalaries.Program.CalculateFromFile("GA7A33"));

            Assert.AreEqual("invalid", SimpleSalaries.Program.CalculateFromFile(" "));

            Assert.AreEqual("invalid", SimpleSalaries.Program.CalculateFromFile(""));
        }
Beispiel #2
0
        public void TestNetoCalc()
        {
            Program program = new SimpleSalaries.Program();

            Assert.AreEqual(764, SimpleSalaries.Program.CalculateNetoSalary("1000"));
        }
Beispiel #3
0
        public void TestNetoCalc()
        {
            Program program = new SimpleSalaries.Program();

            Assert.AreEqual(4051.6, SimpleSalaries.Program.CalculateFromFile());
        }