public void MaskParser_ManySplits_Exception() { var parser = new MaskParser("{artist}-{track}"); parser.ValidateFileName("Test-Artist-1"); }
public void MaskParser_WithoutSplits_Exception() { var parser = new MaskParser("{artist}{track}"); parser.ValidateFileName("TestArtist1"); }
public void MaskParser_SplitInBeginAndEnd_Successful() { var parser = new MaskParser("-{artist}.{track}-"); Assert.IsTrue(parser.ValidateFileName("-TestArtist.1-")); }
public void MaskParser_LetterInCenter_Successful() { var parser = new MaskParser("{artist}Q{track}"); Assert.IsTrue(parser.ValidateFileName("TestArtistQ1")); }
public void MaskParser_SameSplits_Successful() { var parser = new MaskParser("{artist} - {title} - {track}"); Assert.IsTrue(parser.ValidateFileName("TestArtist - TestTitle - 1")); }
public void MaskParser_SplitInBegin_Successful() { var parser = new MaskParser("a{artist}"); Assert.IsTrue(parser.ValidateFileName("aTestArtist")); }
public void MaskParser_Common_Successful() { var parser = new MaskParser("{artist} - {title}"); Assert.IsTrue(parser.ValidateFileName("TestArtist - TestTitle")); }