public void StringLiteral() { Pattern pattern = Pattern.StringLiteral("\"", "\\\""); ResultAssert.Captures("\"Hello World\"", pattern.Consume("\"Hello World\"")); ResultAssert.Captures("\"Hello World\"", pattern.Consume("\"Hello World\" Bacon")); ResultAssert.Captures("\"Hello\\\"World\"", pattern.Consume("\"Hello\\\"World\"")); ResultAssert.Captures("\"Hello\\\"World\"", pattern.Consume("\"Hello\\\"World\" Bacon")); }