public void WhenInputIsNotMultiplesOfThreeItShouldReturnFalse()
        {
            //Arrange
            var divisionChecker = new DivisibleByThree();
            //Act
            var result = divisionChecker.IsDivisible(8);

            //Assert
            Assert.AreEqual(false, result);
        }
        public void The_number_zero_should_be_divisble_by_three()
        {
            var rule = new DivisibleByThree();

            rule.Matches(0).Should().BeTrue();
        }
        public void Given_the_a_number_not_divisble_by_three_it_should_not_match(int number)
        {
            var rule = new DivisibleByThree();

            rule.Matches(number).Should().BeFalse();
        }
Exemplo n.º 4
0
 public void SetUp()
 {
     _rule = new DivisibleByThree();
 }