Exemple #1
0
        public void ManualDeserializationWorks_NullableEnabledContext()
        {
            NullableEnabledContext original            = CloneNoBufferTests.GetNullableEnabledContext();
            LazinatorMemory        serializedBytes     = GetLazinatorMemoryCopy(original);
            NullableEnabledContext copy                = new NullableEnabledContext(serializedBytes);
            LazinatorMemory        serializedBytesCopy = GetLazinatorMemoryCopy(original);

            serializedBytes.Matches(serializedBytesCopy.InitialReadOnlyMemory.Span).Should().BeTrue();
        }
Exemple #2
0
 public void CloneLazinatorTyped_NullEnabledContext()
 {
     var nec    = CloneNoBufferTests.GetNullableEnabledContext();
     var result = nec.CloneLazinatorTyped(IncludeChildrenMode.IncludeAllChildren);
 }