BinaryDataLoadSaveTests SaveAndLoadArrayWithMixedNumbersAndNullElements 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 SaveAndLoadArrayWithMixedNumbersAndNullElements()
Examples

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