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;");
548
UpdateSourceFile
(programPath, """
635
UpdateSourceFile
(Path.Combine(testAsset.Path, "App", "Update.cs"), newSrc);
664
UpdateSourceFile
(sourcePath, source.Replace("Console.WriteLine(\".\");", "Console.WriteLine(\"<Updated>\");"));
704
UpdateSourceFile
(sourcePath, source.Replace("Console.WriteLine(\".\");", "Console.WriteLine(\"<Updated>\");"));
798
UpdateSourceFile
(Path.Combine(testAsset.Path, "Pages", "Index.razor"), newSource);
905
UpdateSourceFile
(scopedCssPath, newCss);
1145
UpdateSourceFile
(
1161
UpdateSourceFile
(
1188
UpdateSourceFile
(
HotReload\RuntimeProcessLauncherTests.cs (6)
256
UpdateSourceFile
(libSource,
294
UpdateSourceFile
(serviceSourceA2, """
364
UpdateSourceFile
(libSource,
450
UpdateSourceFile
(lib, """
531
UpdateSourceFile
(serviceSourceA2, """
612
UpdateSourceFile
(path, "class C { int F() => 2; }");
TestUtilities\DotNetWatchTestBase.cs (1)
39
=>
UpdateSourceFile
(path, contentTransform(File.ReadAllText(path, Encoding.UTF8)), testPath, testLine);