public void CanApply_Returns_Calls_CanApply( bool fizzRule, bool buzzRule, bool expected) { // Arrange m_FizzRule.CanApply(Arg.Any <int>()).Returns(fizzRule); m_BuzzRule.CanApply(Arg.Any <int>()).Returns(buzzRule); // Act // Assert Assert.AreEqual(expected, m_Sut.CanApply(DoesNotMatter)); }
protected override bool CheckIfCanApply(int number) { return(m_FizzRule.CanApply(number) && m_BuzzRule.CanApply(number)); }