public void Multi_Comment_Line_Spanning_Lines_Do_Not_Count() { LinesOfCode.Count(@"/* test commented line counted line */ using System;") .ShouldBe(1); }
public void Multiple_Lines_Count() { LinesOfCode.Count(@"using System; using System.Text; using System.IO;") .ShouldBe(3); }
public void Blank_Line_Does_Not_Count() { LinesOfCode.Count(@"// test using System; using System.Text;") .ShouldBe(2); }
public void Multi_Comment_Line_With_Interceptions_Count() { LinesOfCode.Count(@"/* test commented line */ using System; //works using /* another */ System; /* counted line */ using System;") .ShouldBe(3); }
public void Multi_Comment_Line_With_Preceeding_Literal_Does_Count() { LinesOfCode.Count("using System; /* test */") .ShouldBe(1); }
public void Multi_Comment_Line_Does_Not_Count() { LinesOfCode.Count("/* test */") .ShouldBe(0); }
public void Comment_Line_Does_Not_Count() { LinesOfCode.Count("// test") .ShouldBe(0); }
public void Single_Line_Does_Count() { LinesOfCode.Count("using System;") .ShouldBe(1); }
public void Empty_String_Does_Not_Count() { LinesOfCode.Count(string.Empty) .ShouldBe(0); }