private bool IsGenerationLine(string str) { switch (GenerationFormat) { case GenerationFormat.gfRome: return(ImportUtils.IsRomeLine(str)); case GenerationFormat.gfGenWord: return(str.StartsWith("Поколение ", StringComparison.InvariantCultureIgnoreCase)); default: return(false); } }
public void Test_Other() { Assert.IsTrue(ImportUtils.IsRomeLine("XIV")); Assert.IsFalse(ImportUtils.IsRomeLine("XVA")); Assert.IsFalse(ImportUtils.IsRomeLine("")); }