コード例 #1
0
ファイル: Test.cs プロジェクト: 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(""));
        }
コード例 #2
0
ファイル: Test.cs プロジェクト: Labor2/Lab2
        public void TestNetoCalc()
        {
            Program program = new SimpleSalaries.Program();

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

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