BlocksContentTests GetFilenameWithoutPrefix Method Delta Engine Documentation

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

public void GetFilenameWithoutPrefix()
Examples

[Test, CloseAfterFirstFrame]
public void GetFilenameWithoutPrefix()
{
    var content = new JewelBlocksContent { Prefix = "ABC" };
    Assert.AreEqual("DEF", content.GetFilenameWithoutPrefix("ABCDEF"));
    Assert.Throws<BlocksContent.FilenameWrongPrefixException>(
        () => content.GetFilenameWithoutPrefix("ADEF"));
    Assert.Throws<BlocksContent.FilenameWrongPrefixException>(
        () => content.GetFilenameWithoutPrefix("AAADEF"));
}
See Also