public void LazinatorArrayWorks() { LazinatorArray <WInt32> l = new LazinatorArray <WInt32>(3); l[0] = 10; l[2] = 12; var c = l.CloneLazinatorTyped(); c[0].WrappedValue.Should().Be(10); c[1].WrappedValue.Should().Be(0); // Default value c[2].WrappedValue.Should().Be(12); }
public void CloneWithoutBuffer_LazinatorArray_Example() { LazinatorArray <Example> GetArray() { LazinatorArray <Example> l = new LazinatorArray <Example>(3); l[0] = GetExample(1); l[1] = GetExample(1); l[2] = null; return(l); } VerifyCloningEquivalence(() => GetArray()); }