19 references to ParseAndValidate
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (19)
Parsing\ScriptParsingTests.cs (19)
30ParseAndValidate(text, null, errors); 77ParseAndValidate(test, TestOptions.Script, 2590ParseAndValidate(test, TestOptions.Regular9); 2594ParseAndValidate(test, TestOptions.Regular9, new[] { new ErrorDescription { Code = (int)ErrorCode.ERR_SemicolonExpected, Line = 1, Column = 8 } }); // expected ';' 2598ParseAndValidate(test, TestOptions.Script); 2602ParseAndValidate(test, TestOptions.Script); 2606ParseAndValidate(test, TestOptions.Script); 9633var tree = ParseAndValidate($"#!{command}", TestOptions.Script); 9644tree = ParseAndValidate($"#! {command}\r\n ", TestOptions.Script); 9658tree = ParseAndValidate( 9674ParseAndValidate(" #!/usr/bin/env csi", TestOptions.Script, 9677ParseAndValidate("\n#!/usr/bin/env csi", TestOptions.Script, 9680ParseAndValidate("\r\n#!/usr/bin/env csi", TestOptions.Script, 9683ParseAndValidate("#!/bin/sh\r\n#!/usr/bin/env csi", TestOptions.Script, 9686ParseAndValidate("a #!/usr/bin/env csi", TestOptions.Script, 9693ParseAndValidate("#/usr/bin/env csi", TestOptions.Script, 9700ParseAndValidate("# !/usr/bin/env csi", TestOptions.Script, 9707var tree = ParseAndValidate("//#!/usr/bin/env csi", TestOptions.Script); 9719ParseAndValidate("#!/usr/bin/env csi", TestOptions.Regular,