6 overrides of ToCSharp
Microsoft.CodeAnalysis.LanguageServer.UnitTests (6)
FileBasedProgramsEntryPointDiscoveryTests.cs (6)
687
public override string
ToCSharp
(string tempDirVar) => $"Directory.CreateDirectory(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"));";
693
public override string
ToCSharp
(string tempDirVar) => $"File.WriteAllText(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"), FbaContent);";
699
public override string
ToCSharp
(string tempDirVar) => $"File.WriteAllText(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"), OrdinaryCsContent);";
705
public override string
ToCSharp
(string tempDirVar) => $"File.WriteAllText(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"), CsprojContent);";
711
public override string
ToCSharp
(string tempDirVar) => $"File.Delete(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"));";
717
public 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)
967
sb.AppendLine($" {op.
ToCSharp
("tempDir")}");
977
sb.AppendLine($" {op.
ToCSharp
("tempDir")}");