BinaryDataLoadSaveTests SaveAndLoadArrayWithOnlyNullElements Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Core
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void SaveAndLoadArrayWithOnlyNullElements()
Examples

[Test]
public void SaveAndLoadArrayWithOnlyNullElements()
{
    var instance = new object[] { null, null };
    var data = BinaryDataExtensions.SaveDataIntoMemoryStream(instance);
    var retrieved = BinaryDataExtensions.LoadDataWithKnownTypeFromMemoryStream<object[]>(data);
    Assert.IsTrue(instance.Compare(retrieved));
}
See Also