23 references to UpdateSourceFile
dotnet-watch.Tests (23)
HotReload\ApplyDeltaTests.cs (16)
27
UpdateSourceFile
(Path.Combine(dependencyDir, "AnotherLib.cs"), """
38
UpdateSourceFile
(Path.Combine(dependencyDir, "Foo.cs"), """
69
UpdateSourceFile
(Path.Combine(dependencyDir, "Foo.cs"), newSrc);
106
UpdateSourceFile
(Path.Combine(dependencyDir, "Foo.cs"), newSrc);
261
UpdateSourceFile
(appDataFilePath, """
303
UpdateSourceFile
(binDirFilePath, "class X;");
304
UpdateSourceFile
(objDirFilePath, "class X;");
606
UpdateSourceFile
(programPath, """
693
UpdateSourceFile
(Path.Combine(testAsset.Path, "App", "Update.cs"), newSrc);
722
UpdateSourceFile
(sourcePath, source.Replace("Console.WriteLine(\".\");", "Console.WriteLine(\"<Updated>\");"));
762
UpdateSourceFile
(sourcePath, source.Replace("Console.WriteLine(\".\");", "Console.WriteLine(\"<Updated>\");"));
889
UpdateSourceFile
(Path.Combine(testAsset.Path, "Pages", "Index.razor"), newSource);
996
UpdateSourceFile
(scopedCssPath, newCss);
1241
UpdateSourceFile
(
1257
UpdateSourceFile
(
1282
UpdateSourceFile
(
HotReload\RuntimeProcessLauncherTests.cs (6)
257
UpdateSourceFile
(libSource,
295
UpdateSourceFile
(serviceSourceA2, """
365
UpdateSourceFile
(libSource,
451
UpdateSourceFile
(lib, """
532
UpdateSourceFile
(serviceSourceA2, """
613
UpdateSourceFile
(path, "class C { int F() => 2; }");
TestUtilities\DotNetWatchTestBase.cs (1)
39
=>
UpdateSourceFile
(path, contentTransform(File.ReadAllText(path, Encoding.UTF8)), testPath, testLine);