Namespace: Blocks
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Tests: Blocks.Tests.BlocksContentTests
1 unit tests call Blocks.BlocksContent.GetFilenameWithoutPrefix(System.String)
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- filenameWithPrefix
- Type: System String
Return Value
Type: StringRemarks
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