Пример #1
0
 public void Scan_ReturnsCorrectTokens(string input, List <ScanToken> expectedTokens)
 {
     CharacterScanner.Scan(input)
     .Should().BeEquivalentTo(expectedTokens);
 }
Пример #2
0
 public void Scan_WithNullInput_Throws()
 {
     TestAction(() => CharacterScanner.Scan(null))
     .Should().Throw <ArgumentNullException>().Where(x => x.ParamName == "input");
 }