public void Scan_ReturnsCorrectTokens(string input, List <ScanToken> expectedTokens) { CharacterScanner.Scan(input) .Should().BeEquivalentTo(expectedTokens); }
public void Scan_WithNullInput_Throws() { TestAction(() => CharacterScanner.Scan(null)) .Should().Throw <ArgumentNullException>().Where(x => x.ParamName == "input"); }