public void SimpleEscapeSequenceIsExtracted()
 {
     String input = @"'some\rstring'";
       var parser = new CssEscapeSequenceParser(input);
       Assert.Equal(new Span(5,2), parser.Next());
       Assert.Equal(null, parser.Next());
 }
 public void HexEscapeSequenceLen6IsExtracted()
 {
     String input = @"'some\123456eabfnstring'";
       var parser = new CssEscapeSequenceParser(input);
       Assert.Equal(new Span(5,7), parser.Next());
       Assert.Equal(null, parser.Next());
 }
 public void TwoEscapeSequencesAreExtracted()
 {
     String input = @"'some\r\nstring'";
       var parser = new CssEscapeSequenceParser(input);
       Assert.Equal(new Span(5,2), parser.Next());
       Assert.Equal(new Span(7,2), parser.Next());
       Assert.Equal(null, parser.Next());
 }
 public void NoEscapesReturnsNull()
 {
     String input = "'some string'";
       var parser = new CssEscapeSequenceParser(input);
       Assert.Equal(null, parser.Next());
 }