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