public async Task ParseError(InMemorySourceText additionalText, object[] diagnosticsArg) { var test = new Test { TestState = { AdditionalFiles = { additionalText, new InMemorySourceText("/foo/bar/SourceExpander.Notmatch.json","notmatch"), },
public async Task ParseErrorTest(InMemorySourceText additionalText, object[] diagnosticsArg) { var others = new SourceFileCollection { ( @"/home/other/C.cs", "namespace Other{public static class C{public static void P()=>System.Console.WriteLine();}}" ), ( @"/home/other/AssemblyInfo.cs", @"[assembly: System.Reflection.AssemblyMetadata(""SourceExpander.EmbeddedSourceCode"", ""[{\""CodeBody\"":\""namespace Other { public static class C { public static void P() => System.Console.WriteLine(); } } \"",\""Dependencies\"":[],\""FileName\"":\""OtherDependency>C.cs\"",\""TypeNames\"":[\""Other.C\""],\""Usings\"":[]}]"")]" + @"[assembly: System.Reflection.AssemblyMetadata(""SourceExpander.EmbedderVersion"",""1.1.1.1"")]" + @"[assembly: System.Reflection.AssemblyMetadata(""SourceExpander.EmbeddedLanguageVersion"",""7.2"")]" ), }; var test = new Test { SolutionTransforms = { (solution, projectId) => CreateOtherReference(solution, projectId, others), },