6 overrides of ToCSharp
Microsoft.CodeAnalysis.LanguageServer.UnitTests (6)
FileBasedProgramsEntryPointDiscoveryTests.cs (6)
621
public override string
ToCSharp
(string tempDirVar) => $"Directory.CreateDirectory(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"));";
627
public override string
ToCSharp
(string tempDirVar) => $"File.WriteAllText(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"), FbaContent);";
633
public override string
ToCSharp
(string tempDirVar) => $"File.WriteAllText(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"), OrdinaryCsContent);";
639
public override string
ToCSharp
(string tempDirVar) => $"File.WriteAllText(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"), CsprojContent);";
645
public override string
ToCSharp
(string tempDirVar) => $"File.Delete(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"));";
651
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)
901
sb.AppendLine($" {op.
ToCSharp
("tempDir")}");
911
sb.AppendLine($" {op.
ToCSharp
("tempDir")}");