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