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

[Test]
public void ThrowExceptionIfTypeNameEndsWithImageOrSound()
{
    Assert.Throws<BinaryDataSaver.UnableToSave>(
        () => BinaryDataExtensions.SaveToMemoryStream(new NonContentImage()));
    Assert.Throws<BinaryDataSaver.UnableToSave>(
        () => BinaryDataExtensions.SaveToMemoryStream(new NonContentSound()));
}
See Also