Пример #1
0
        public void ShouldReturnNumberIfNumberIsAMultipleOfFive()
        {
            //When
            var result = MultiplesOfThreeAndFive.GetMultipleOfThreeAndFive(10);

            //Then
            Assert.Contains(5, result);
        }
Пример #2
0
        public void ShouldNotContainDuplicateMultipleFactors()
        {
            //When
            var result = MultiplesOfThreeAndFive.GetMultipleOfThreeAndFive(15);

            //Then
            var distinctAmount = result.Distinct().Count();

            Assert.Equal(distinctAmount, result.Count);
        }
Пример #3
0
        public void ShouldReturnAllMultipleOfThreeAndFiveBelow1000()
        {
            //When
            var result = MultiplesOfThreeAndFive.GetMultipleOfThreeAndFive(1000);

            //Then
            Assert.Contains(3, result);
            Assert.Contains(5, result);
            Assert.Contains(6, result);
            Assert.Contains(9, result);
        }