Пример #1
0
        public void ConstructionWorksWithSingleAspect()
        {
            // --- Arrange
            var chain = new AspectChain(new Aspect1());

            // --- Assert
            chain.ShouldHaveCountOf(1);
        }
Пример #2
0
        public void ConstructionWorksWithMultipleAspect1()
        {
            // --- Arrange
            var chain = new AspectChain(new Aspect1(), new Aspect2());

            // --- Assert
            chain.ShouldHaveCountOf(2);
        }
Пример #3
0
        public void ConstructionWorksWithMultipleAspect1()
        {
            // --- Arrange
            var chain = new AspectChain(new Aspect1(), new Aspect2());

            // --- Assert
            chain.ShouldHaveCountOf(2);
        }
Пример #4
0
        public void ConstructionWorksWithSingleAspect()
        {
            // --- Arrange
            var chain = new AspectChain(new Aspect1());

            // --- Assert
            chain.ShouldHaveCountOf(1);
        }
Пример #5
0
        public void ConstructionWorksWithMultipleAspect2()
        {
            // --- Arrange
            var chain = new AspectChain(
                new List<IMethodAspect>
                    {
                        new Aspect1(),
                        new Aspect2(),
                        new Aspect3()
                    });

            // --- Assert
            chain.ShouldHaveCountOf(3);
        }
Пример #6
0
        public void ConstructionWorksWithMultipleAspect2()
        {
            // --- Arrange
            var chain = new AspectChain(
                new List <IMethodAspect>
            {
                new Aspect1(),
                new Aspect2(),
                new Aspect3()
            });

            // --- Assert
            chain.ShouldHaveCountOf(3);
        }