MCPcopy Create free account
hub / github.com/apache/fory / OptionalRoundTrip

Method OptionalRoundTrip

csharp/tests/Fory.Tests/ForyRuntimeTests.cs:580–589  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 5

BuildMethod · 0.80
BuilderMethod · 0.80
NullMethod · 0.80
EqualMethod · 0.45
SerializeMethod · 0.45

Tested by

no test coverage detected