()
| 578 | } |
| 579 | |
| 580 | [Fact] |
| 581 | public void OptionalRoundTrip() |
| 582 | { |
| 583 | ForyRuntime fory = ForyRuntime.Builder().Build(); |
| 584 | |
| 585 | string? present = "present"; |
| 586 | string? absent = null; |
| 587 | Assert.Equal("present", fory.Deserialize<string?>(fory.Serialize(present))); |
| 588 | Assert.Null(fory.Deserialize<string?>(fory.Serialize(absent))); |
| 589 | } |
| 590 | |
| 591 | [Fact] |
| 592 | public void ForyReusedContextsHandleSequentialCalls() |