public void when_operation_failed_should_not_allow_to_get_result() { result.Invoking(r => { var incremented = r.Result; }) .ShouldThrow <InvalidOperationException>() .WithMessage("Command didn't complete succesfully", ComparisonMode.Substring); }