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

[Test]
public void ThrowExceptionOnSavingAnUnsupportedStream()
{
    using (var otherStreamThanMemory = new BufferedStream(new MemoryStream()))
    using (var dataWriter = new BinaryWriter(otherStreamThanMemory))
        Assert.Throws<BinaryDataSaver.UnableToSave>(
            () => BinaryDataSaver.SaveDataType(otherStreamThanMemory, typeof(object), dataWriter));
}
See Also