public void ListWithMultipleTabs() { var codeLines = new[] { $"{TabString}{TabString}{AnyString}", $"{TabString}{TabString}{AnyString}{AnyString}{TabString}" }; var result = ExcessTabDetector.DetectExcessTabDepth(StringsAsCodeLines(codeLines)); result.ShouldEqual(2); }
public void ListWithOneTabAndZeroTab() { var codeLines = new[] { $"{AnyString}", $"{TabString}{AnyString}", }; var result = ExcessTabDetector.DetectExcessTabDepth(StringsAsCodeLines(codeLines)); result.ShouldEqual(0); }
public void EmptyList() { var result = ExcessTabDetector.DetectExcessTabDepth(new CodeLine[0]); result.ShouldEqual(0); }