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