コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: RMorrisby/euler
        public void TestGetLowestAndHighestFactor()
        {
            int number = 909;
            LowestAndHighestFactor factors         = PrimeHelper.GetLowestAndHighestFactor(number);
            LowestAndHighestFactor expectedFactors = new LowestAndHighestFactor(3, 303);

            Assert.AreEqual(expectedFactors.lowest, factors.lowest, $"The lowest factor of {number} was incorrect");
            Assert.AreEqual(expectedFactors.highest, factors.highest, $"The highest factor of {number} was incorrect");
        }