public void AddOperationContext_ShouldNot_SetOperationContext_WhenAlreadyPresent() { var e = new GridwichTestException(); var context1 = new JObject(); var context2 = new JObject(); e.AddOperationContext(context1); e.AddOperationContext(context2); e.OperationContext.ShouldBe(context1); }
public void AddOperationContext_Should_SetOperationContext() { var e = new GridwichTestException(); var context = new JObject(); e.AddOperationContext(context); e.OperationContext.ShouldBe(context); }