2 writes to Path
System.Private.Windows.Core.TestUtilities (2)
TempFile.cs (2)
29
Path
= path;
39
Path
= path;
101 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)
499
Assert.Throws<OutOfMemoryException>(() => Image.FromFile(file.
Path
));
500
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)
863
control.SetFile(file.
Path
);
874
control.SetFile(file.
Path
);
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (25)
56
temp.
Path
,
66
temp.
Path
,
104
temp.
Path
,
114
temp.
Path
,
196
resxFile: temp.
Path
,
218
resxFile: temp.
Path
,
242
using (ResXResourceWriter writer = new(temp.
Path
))
249
resxFile: temp.
Path
,
310
resxFile: temp.
Path
,
317
using ResXResourceReader reader = new(temp.
Path
);
332
using (ResXResourceWriter resxWriter = new(temp.
Path
))
339
resxFile: temp.
Path
,
346
using ResXResourceReader reader = new(temp.
Path
);
391
resxFile: temp.
Path
,
398
using ResXResourceReader reader = new(temp.
Path
);
412
using (ResXResourceWriter resxWriter = new(temp.
Path
))
419
resxFile: temp.
Path
,
426
using ResXResourceReader reader = new(temp.
Path
);
472
resxFile: temp.
Path
,
479
using ResXResourceReader reader = new(temp.
Path
);
525
resxFile: temp.
Path
,
532
using ResXResourceReader reader = new(temp.
Path
);
624
using (ResXResourceWriter resxWriter = new(temp.
Path
))
631
resxFile: temp.
Path
,
638
using ResXResourceReader reader = new(temp.
Path
);
System.Windows.Forms.Tests (62)
System\Resources\ResXResourceReaderTests.cs (1)
60
using ResXResourceReader resXReader = new(tempFile.
Path
);
System\Windows\Forms\HtmlDocumentTests.cs (3)
1259
await Task.Run(() => control.Navigate(file.
Path
));
1263
Assert.Equal(new Uri(file.
Path
), document.Url);
2380
await Task.Run(() => control.Navigate(file.
Path
));
System\Windows\Forms\HtmlElementTests.cs (1)
3326
await Task.Run(() => control.Navigate(file.
Path
));
System\Windows\Forms\HtmlWindowTests.cs (1)
100
await Task.Run(() => control.Navigate(file.
Path
));
System\Windows\Forms\InputLanguageTests.cs (2)
225
RunPowerShellScript(tempFile.
Path
);
239
RunPowerShellScript(tempFile.
Path
);
System\Windows\Forms\WebBrowserTests.cs (54)
387
await Task.Run(() => control.Navigate(file1.
Path
));
422
await Task.Run(() => control.Navigate(file1.
Path
));
466
await Task.Run(() => control.Navigate(file.
Path
));
535
await Task.Run(() => control.Navigate(file.
Path
));
652
await Task.Run(() => control.Navigate(file.
Path
));
891
await Task.Run(() => control.Navigate(file.
Path
));
957
await Task.Run(() => control.Navigate(file.
Path
));
1024
await Task.Run(() => control.Navigate(file.
Path
));
1133
await Task.Run(() => control.Navigate(file.
Path
));
1620
await Task.Run(() => control.Navigate(file.
Path
));
1871
await Task.Run(() => control.Navigate(file.
Path
));
1937
await Task.Run(() => control.Navigate(file.
Path
));
1940
Assert.Equal(new Uri(file.
Path
), control.Url);
1982
Assert.Equal(new Uri(file.
Path
), e.Url);
1991
Assert.Equal(new Uri(file.
Path
), e.Url);
2005
Assert.Equal(new Uri(file.
Path
), e.Url);
2028
await Task.Run(() => control.Url = new Uri(file.
Path
));
2030
Assert.Equal(new Uri(file.
Path
), control.Url);
2042
await Task.Run(() => control.Url = new Uri(file.
Path
));
2044
Assert.Equal(new Uri(file.
Path
), control.Url);
2075
await Task.Run(() => control.Url = new Uri(file.
Path
));
2077
Assert.Equal(new Uri(file.
Path
), control.Url);
2911
await Task.Run(() => control.Navigate(file1.
Path
));
2921
await Task.Run(() => control.Navigate(file2.
Path
));
2931
await Task.Run(() => control.Navigate(file3.
Path
));
3028
await Task.Run(() => control.Navigate(file1.
Path
));
3036
await Task.Run(() => control.Navigate(file2.
Path
));
3046
await Task.Run(() => control.Navigate(file3.
Path
));
3204
Assert.Equal(new Uri(file.
Path
), e.Url);
3213
Assert.Equal(new Uri(file.
Path
), e.Url);
3227
Assert.Equal(new Uri(file.
Path
), e.Url);
3250
await Task.Run(() => control.Navigate(file.
Path
));
3252
Assert.Equal(new Uri(file.
Path
), control.Url);
3264
await Task.Run(() => control.Navigate(file.
Path
));
3266
Assert.Equal(new Uri(file.
Path
), control.Url);
3291
await Task.Run(() => control.Navigate(new Uri(file.
Path
)));
3293
Assert.Equal(new Uri(file.
Path
), control.Url);
3316
Assert.Equal(new Uri(file.
Path
), e.Url);
3325
Assert.Equal(new Uri(file.
Path
), e.Url);
3339
Assert.Equal(new Uri(file.
Path
), e.Url);
3362
await Task.Run(() => control.Navigate(new Uri(file.
Path
)));
3364
Assert.Equal(new Uri(file.
Path
), control.Url);
3376
await Task.Run(() => control.Navigate(new Uri(file.
Path
)));
3378
Assert.Equal(new Uri(file.
Path
), control.Url);
3409
await Task.Run(() => control.Navigate(new Uri(file.
Path
)));
3411
Assert.Equal(new Uri(file.
Path
), control.Url);
3441
await Task.Run(() => control.Navigate(file1.
Path
));
3449
await Task.Run(() => control.Navigate(file2.
Path
));
3968
await Task.Run(() => control.Navigate(file.
Path
));
3990
Assert.Equal(new Uri(file.
Path
), control.Url);
4002
Assert.Equal(new Uri(file.
Path
), control.Url);
4115
await Task.Run(() => control.Navigate(file.
Path
));
4137
Assert.Equal(new Uri(file.
Path
), control.Url);
4149
Assert.Equal(new Uri(file.
Path
), control.Url);
System.Windows.Forms.UI.IntegrationTests (5)
OpenFileDialogTests.cs (5)
42
dialog.InitialDirectory = Path.GetDirectoryName(tempFile.
Path
);
43
dialog.FileName = tempFile.
Path
;
45
Assert.Equal(tempFile.
Path
, dialog.FileName);
55
dialog.InitialDirectory = Path.GetDirectoryName(tempFile.
Path
);
56
dialog.FileName = tempFile.
Path
;