public void ItThrowsUnisaveException()
 {
     ExecuteFramework.Begin()
     .SerializeExceptions()
     .Execute(@"
             {
                 ""method"": ""entrypoint-test"",
                 ""methodParameters"": {
                     ""perform"": ""throw-ue""
                 }
             }
         ")
     .AssertExceptionThrown()
     .AssertExceptionIs <UnisaveException>();
 }
 public void ItThrowsUnisaveExceptionWithSpecialFooBar()
 {
     ExecuteFramework.Begin()
     .SerializeExceptions()
     .Execute(@"
             {
                 ""method"": ""entrypoint-test"",
                 ""methodParameters"": {
                     ""perform"": ""throw-ue-with-special-foo-bar""
                 }
             }
         ")
     .AssertExceptionThrown()
     .AssertExceptionIs <UnisaveException>()
     .AssertHasSpecial("foo", @"""bar""");
 }
 public void ItReturns42()
 {
     ExecuteFramework.Begin()
     .SerializeExceptions()
     .Execute(@"
             {
                 ""method"": ""entrypoint-test"",
                 ""methodParameters"": {
                     ""perform"": ""return-42""
                 }
             }
         ")
     .AssertResultIs(@"
             {
                 ""result"": ""ok"",
                 ""returned"": 42,
                 ""special"": {}
             }
         ");
 }
 public void ItReturnsNullWithSpecialFooBar()
 {
     ExecuteFramework.Begin()
     .SerializeExceptions()
     .Execute(@"
             {
                 ""method"": ""entrypoint-test"",
                 ""methodParameters"": {
                     ""perform"": ""return-null-with-special-foo-bar""
                 }
             }
         ")
     .AssertResultIs(@"
             {
                 ""result"": ""ok"",
                 ""returned"": null,
                 ""special"": {
                     ""foo"": ""bar""
                 }
             }
         ")
     .AssertHasSpecial("foo", @"""bar""");
 }