コード例 #1
0
ファイル: ExD2Test.cs プロジェクト: BionStt/CSExercises
        public void ExD2_TestWithPositiveNumber2()
        {
            int hcf = 0; int lcm = 0;

            ExD2.CalculateHCFAndLCM(120, 2000, ref hcf, ref lcm);
            Assert.AreEqual(40, hcf);
            Assert.AreEqual(6000, lcm);
        }
コード例 #2
0
ファイル: ExD2Test.cs プロジェクト: BionStt/CSExercises
        public void ExD2_TestWithPositiveNumber1()
        {
            int hcf = 0; int lcm = 0;

            ExD2.CalculateHCFAndLCM(8, 4, ref hcf, ref lcm);
            Assert.AreEqual(4, hcf);
            Assert.AreEqual(8, lcm);
        }