Esempio n. 1
0
        public void AllInvocationsMatchesTest()
        {
            //Arrange
            var sut        = new AlwaysApplyAdvice();
            var invocation = new TestInvocation();

            //Act
            var invocationMatches = sut.IsApplicableFor(invocation);

            //Assert
            Assert.IsTrue(invocationMatches);
        }
Esempio n. 2
0
        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);
        }