[TestCase(arg: "(+ )")] // space is hard separator, closing bracket is missing, no entry left public void ScanNewFailure(string content) { var input = new TextInputRange { File = new TextFile { Content = content, Filename = "" } }; var result = IdentifierScanner.Scan(input); Assert.IsNull(result); }
[TestCase(arg1: ".add", arg2: ".add")] // used for self shortcut public void ScanNewSuccess(string content, string id) { var input = new TextInputRange { File = new TextFile { Content = content, Filename = "" } }; var result = IdentifierScanner.Scan(input); Assert.IsNotNull(result); Assert.AreEqual(id, result.Content); }