6 overrides of ToCSharp
Microsoft.CodeAnalysis.LanguageServer.UnitTests (6)
FileBasedProgramsEntryPointDiscoveryTests.cs (6)
694
public override string
ToCSharp
(string tempDirVar) => $"Directory.CreateDirectory(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"));";
700
public override string
ToCSharp
(string tempDirVar) => $"File.WriteAllText(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"), FbaContent);";
706
public override string
ToCSharp
(string tempDirVar) => $"File.WriteAllText(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"), OrdinaryCsContent);";
712
public override string
ToCSharp
(string tempDirVar) => $"File.WriteAllText(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"), CsprojContent);";
718
public override string
ToCSharp
(string tempDirVar) => $"File.Delete(Path.Combine({tempDirVar}.Path, @\"{NormalizeForCSharp(RelativePath)}\"));";
724
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)
980
sb.AppendLine($" {op.
ToCSharp
("tempDir")}");
990
sb.AppendLine($" {op.
ToCSharp
("tempDir")}");