Пример #1
0
        public void ExceptionWorksAsExpected()
        {
            // --- Act
            try
            {
                _aspectedObject.Operation5();
            }
            catch (InvalidOperationException) {}

            // --- Assert
            SimpleAspectAttribute.VisitInfo.ShouldEqual("cE5E5QcQ5XcX");
        }
Пример #2
0
        public void ExceptionWithNoAspectWorksAsExpected()
        {
            // --- Act
            try
            {
                _noAspectObject.Operation5();
            }
            catch (InvalidOperationException) { }

            // --- Assert
            SimpleAspectAttribute.VisitInfo.ShouldEqual("");
        }