コード例 #1
0
        public void Base()
        {
            var sut = new EuclidianAlgorithmForCommonDenominator();

            Assert.Equal(16, sut.CommonDenominator(32, 48));
            Assert.Equal(16, sut.CommonDenominator(160, 144));
        }
コード例 #2
0
        public void NoCommonDenomintatorExcept1()
        {
            var sut = new EuclidianAlgorithmForCommonDenominator();

            Assert.Equal(1, sut.CommonDenominator(137, 54));
        }