6 overrides of ToCSharp
Microsoft.CodeAnalysis.LanguageServer.UnitTests (6)
FileBasedProgramsEntryPointDiscoveryTests.cs (6)
694public override string ToCSharp(string tempDirVar) => $"Directory.CreateDirectory(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"));"; 700public override string ToCSharp(string tempDirVar) => $"File.WriteAllText(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"), FbaContent);"; 706public override string ToCSharp(string tempDirVar) => $"File.WriteAllText(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"), OrdinaryCsContent);"; 712public override string ToCSharp(string tempDirVar) => $"File.WriteAllText(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"), CsprojContent);"; 718public override string ToCSharp(string tempDirVar) => $"File.Delete(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"));"; 724public override string ToCSharp(string tempDirVar) => $"File.Move(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(OldRelativePath)}\"), Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(NewRelativePath)}\"));";
2 references to ToCSharp
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
FileBasedProgramsEntryPointDiscoveryTests.cs (2)
980sb.AppendLine($" {op.ToCSharp("tempDir")}"); 990sb.AppendLine($" {op.ToCSharp("tempDir")}");