public void ExceptionWorksAsExpected() { // --- Act try { _aspectedObject.Operation5(); } catch (InvalidOperationException) {} // --- Assert SimpleAspectAttribute.VisitInfo.ShouldEqual("cE5E5QcQ5XcX"); }
public void ExceptionWithNoAspectWorksAsExpected() { // --- Act try { _noAspectObject.Operation5(); } catch (InvalidOperationException) { } // --- Assert SimpleAspectAttribute.VisitInfo.ShouldEqual(""); }