public void DetectEolType_WithAmbiguousEols_ReturnsSystemEol()
 {
     StringUtility.DetectEolType("\r\n \n").ShouldBe(Environment.NewLine);
     StringUtility.DetectEolType("\n \r\n").ShouldBe(Environment.NewLine);
     StringUtility.DetectEolType("\n \r\n \r\n \n").ShouldBe(Environment.NewLine);
 }
 public void DetectEolType_WithMismatchedEols_ReturnsMoreCommonEol()
 {
     StringUtility.DetectEolType("\r\n \r\n \n").ShouldBe("\r\n");
     StringUtility.DetectEolType("\n \r\n \n").ShouldBe("\n");
 }
 public void DetectEolType_WithNoEols_ReturnsSystemEol()
 {
     StringUtility.DetectEolType("").ShouldBe(Environment.NewLine);
     StringUtility.DetectEolType("abc").ShouldBe(Environment.NewLine);
 }