2 writes to Path
System.Private.Windows.Core.TestUtilities (2)
TempFile.cs (2)
29Path = path; 39Path = path;
99 references to Path
System.Drawing.Common.Tests (4)
System\Drawing\IconTests.cs (2)
825Assert.Null(Icon.ExtractIcon(file.Path, 0, 16)); 826Assert.Null(Icon.ExtractIcon(file.Path, 0));
System\Drawing\ImageTests.cs (2)
496Assert.Throws<OutOfMemoryException>(() => Image.FromFile(file.Path)); 497Assert.Throws<OutOfMemoryException>(() => Image.FromFile(file.Path, useEmbeddedColorManagement: true));
System.Private.Windows.Core.TestUtilities (3)
TempFile.cs (3)
64public void AssertExists() => Assert.True(File.Exists(Path)); 66public string ReadAllText() => File.ReadAllText(Path); 77{ File.Delete(Path); }
System.Windows.Forms.Design.Tests (27)
System\ComponentModel\Design\ByteViewerTests.cs (2)
861control.SetFile(file.Path); 872control.SetFile(file.Path);
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (25)
54temp.Path, 64temp.Path, 102temp.Path, 112temp.Path, 194resxFile: temp.Path, 216resxFile: temp.Path, 240using (ResXResourceWriter writer = new(temp.Path)) 247resxFile: temp.Path, 308resxFile: temp.Path, 315using ResXResourceReader reader = new(temp.Path); 330using (ResXResourceWriter resxWriter = new(temp.Path)) 337resxFile: temp.Path, 344using ResXResourceReader reader = new(temp.Path); 389resxFile: temp.Path, 396using ResXResourceReader reader = new(temp.Path); 410using (ResXResourceWriter resxWriter = new(temp.Path)) 417resxFile: temp.Path, 424using ResXResourceReader reader = new(temp.Path); 470resxFile: temp.Path, 477using ResXResourceReader reader = new(temp.Path); 523resxFile: temp.Path, 530using ResXResourceReader reader = new(temp.Path); 622using (ResXResourceWriter resxWriter = new(temp.Path)) 629resxFile: temp.Path, 636using ResXResourceReader reader = new(temp.Path);
System.Windows.Forms.Tests (62)
System\Resources\ResXResourceReaderTests.cs (1)
58using ResXResourceReader resXReader = new(tempFile.Path);
System\Windows\Forms\HtmlDocumentTests.cs (3)
1257await Task.Run(() => control.Navigate(file.Path)); 1261Assert.Equal(new Uri(file.Path), document.Url); 2378await Task.Run(() => control.Navigate(file.Path));
System\Windows\Forms\HtmlElementTests.cs (1)
3324await Task.Run(() => control.Navigate(file.Path));
System\Windows\Forms\HtmlWindowTests.cs (1)
98await Task.Run(() => control.Navigate(file.Path));
System\Windows\Forms\InputLanguageTests.cs (2)
223RunPowerShellScript(tempFile.Path); 237RunPowerShellScript(tempFile.Path);
System\Windows\Forms\WebBrowserTests.cs (54)
385await Task.Run(() => control.Navigate(file1.Path)); 420await Task.Run(() => control.Navigate(file1.Path)); 464await Task.Run(() => control.Navigate(file.Path)); 533await Task.Run(() => control.Navigate(file.Path)); 650await Task.Run(() => control.Navigate(file.Path)); 889await Task.Run(() => control.Navigate(file.Path)); 955await Task.Run(() => control.Navigate(file.Path)); 1022await Task.Run(() => control.Navigate(file.Path)); 1131await Task.Run(() => control.Navigate(file.Path)); 1618await Task.Run(() => control.Navigate(file.Path)); 1869await Task.Run(() => control.Navigate(file.Path)); 1935await Task.Run(() => control.Navigate(file.Path)); 1938Assert.Equal(new Uri(file.Path), control.Url); 1980Assert.Equal(new Uri(file.Path), e.Url); 1989Assert.Equal(new Uri(file.Path), e.Url); 2003Assert.Equal(new Uri(file.Path), e.Url); 2026await Task.Run(() => control.Url = new Uri(file.Path)); 2028Assert.Equal(new Uri(file.Path), control.Url); 2040await Task.Run(() => control.Url = new Uri(file.Path)); 2042Assert.Equal(new Uri(file.Path), control.Url); 2073await Task.Run(() => control.Url = new Uri(file.Path)); 2075Assert.Equal(new Uri(file.Path), control.Url); 2909await Task.Run(() => control.Navigate(file1.Path)); 2919await Task.Run(() => control.Navigate(file2.Path)); 2929await Task.Run(() => control.Navigate(file3.Path)); 3026await Task.Run(() => control.Navigate(file1.Path)); 3034await Task.Run(() => control.Navigate(file2.Path)); 3044await Task.Run(() => control.Navigate(file3.Path)); 3202Assert.Equal(new Uri(file.Path), e.Url); 3211Assert.Equal(new Uri(file.Path), e.Url); 3225Assert.Equal(new Uri(file.Path), e.Url); 3248await Task.Run(() => control.Navigate(file.Path)); 3250Assert.Equal(new Uri(file.Path), control.Url); 3262await Task.Run(() => control.Navigate(file.Path)); 3264Assert.Equal(new Uri(file.Path), control.Url); 3289await Task.Run(() => control.Navigate(new Uri(file.Path))); 3291Assert.Equal(new Uri(file.Path), control.Url); 3314Assert.Equal(new Uri(file.Path), e.Url); 3323Assert.Equal(new Uri(file.Path), e.Url); 3337Assert.Equal(new Uri(file.Path), e.Url); 3360await Task.Run(() => control.Navigate(new Uri(file.Path))); 3362Assert.Equal(new Uri(file.Path), control.Url); 3374await Task.Run(() => control.Navigate(new Uri(file.Path))); 3376Assert.Equal(new Uri(file.Path), control.Url); 3407await Task.Run(() => control.Navigate(new Uri(file.Path))); 3409Assert.Equal(new Uri(file.Path), control.Url); 3439await Task.Run(() => control.Navigate(file1.Path)); 3447await Task.Run(() => control.Navigate(file2.Path)); 3966await Task.Run(() => control.Navigate(file.Path)); 3988Assert.Equal(new Uri(file.Path), control.Url); 4000Assert.Equal(new Uri(file.Path), control.Url); 4113await Task.Run(() => control.Navigate(file.Path)); 4135Assert.Equal(new Uri(file.Path), control.Url); 4147Assert.Equal(new Uri(file.Path), control.Url);
System.Windows.Forms.UI.IntegrationTests (3)
OpenFileDialogTests.cs (3)
42dialog.InitialDirectory = Path.GetDirectoryName(tempFile.Path); 43dialog.FileName = tempFile.Path; 45Assert.Equal(tempFile.Path, dialog.FileName);