public void AllTypesMatchesTest() { //Arrange var sut = new AlwaysApplyAdvice(); //Act var thisTypeMatches = sut.IsApplicableFor(GetType()); var voidMatches = sut.IsApplicableFor(typeof(void)); //Assert Assert.IsTrue(thisTypeMatches); Assert.IsTrue(voidMatches); }
public void AllInvocationsMatchesTest() { //Arrange var sut = new AlwaysApplyAdvice(); var invocation = new TestInvocation(); //Act var invocationMatches = sut.IsApplicableFor(invocation); //Assert Assert.IsTrue(invocationMatches); }