示例#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");
 }