Example #1
0
File: Test.cs Project: Labor2/Lab2
        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(""));
        }
Example #2
0
File: Test.cs Project: Labor2/Lab2
        public void TestNetoCalc()
        {
            Program program = new SimpleSalaries.Program();

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

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