public void TryCatch() { // Arrange var data = Json.Number(3); var op = new TryCatch { TryBody = new Enumerate(), CatchBody = new FunctionCall( Times.Builtin, new Identity(), new Literal(2)) }; // Act var result = op.RunAsScalar(data); // Assert result.GetString().Should().Be("Can't enumerate Number.Can't enumerate Number."); }