53 writes to StateFile
Microsoft.Build.Tasks.UnitTests (53)
ResourceHandling\GenerateResource_Tests.cs (53)
57
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
151
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
328
t.
StateFile
= new TaskItem(_env.GetTempFile(".cache").Path);
354
t2.
StateFile
= new TaskItem(t.StateFile);
374
t.
StateFile
= new TaskItem(_env.GetTempFile(".cache").Path);
382
t2.
StateFile
= new TaskItem(t.StateFile);
404
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
418
t2.
StateFile
= new TaskItem(t.StateFile);
462
t1.
StateFile
= stateFile;
472
t2.
StateFile
= stateFile;
478
t3.
StateFile
= stateFile;
491
t4.
StateFile
= stateFile;
499
t5.
StateFile
= stateFile;
623
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
639
t2.
StateFile
= new TaskItem(t.StateFile);
682
createResources.
StateFile
= new TaskItem(cache);
694
t2.
StateFile
= new TaskItem(createResources.StateFile.ItemSpec);
737
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
757
t2.
StateFile
= new TaskItem(t.StateFile);
798
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
814
t2.
StateFile
= new TaskItem(t.StateFile);
884
initialCreator.
StateFile
= new TaskItem(stateFile);
894
incrementalUpToDate.
StateFile
= new TaskItem(stateFile);
906
incrementalOutOfDate.
StateFile
= new TaskItem(stateFile);
973
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
980
t2.
StateFile
= new TaskItem(t.StateFile);
990
t3.
StateFile
= new TaskItem(t.StateFile);
1032
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
1163
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
1226
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
1262
t2.
StateFile
= new TaskItem(t.StateFile);
1319
t.
StateFile
= new TaskItem(stateFile);
1340
t.
StateFile
= new TaskItem(stateFile);
1353
t.
StateFile
= new TaskItem(stateFile);
1471
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
1531
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
1589
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
1758
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
1835
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
1939
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
1971
t.
StateFile
= new TaskItem("||//invalid filename||");
2046
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
2079
t.
StateFile
= new TaskItem(env.GetTempFile(".cache").Path);
2099
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
2298
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
2347
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
2418
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
2467
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
2617
t.
StateFile
= new TaskItem(FileUtilities.GetTemporaryFile());
2748
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
2834
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
3622
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
4210
t.
StateFile
= new TaskItem(Utilities.GetTempFileName(".cache"));
16 references to StateFile
Microsoft.Build.Tasks.UnitTests (16)
ResourceHandling\GenerateResource_Tests.cs (16)
354
t2.StateFile = new TaskItem(t.
StateFile
);
382
t2.StateFile = new TaskItem(t.
StateFile
);
418
t2.StateFile = new TaskItem(t.
StateFile
);
639
t2.StateFile = new TaskItem(t.
StateFile
);
694
t2.StateFile = new TaskItem(createResources.
StateFile
.ItemSpec);
757
t2.StateFile = new TaskItem(t.
StateFile
);
814
t2.StateFile = new TaskItem(t.
StateFile
);
980
t2.StateFile = new TaskItem(t.
StateFile
);
990
t3.StateFile = new TaskItem(t.
StateFile
);
1262
t2.StateFile = new TaskItem(t.
StateFile
);
2314
File.Delete(t.
StateFile
.ItemSpec);
2618
File.SetAttributes(t.
StateFile
.ItemSpec, FileAttributes.ReadOnly);
2630
File.SetAttributes(t.
StateFile
.ItemSpec, FileAttributes.Normal);
3827
Assert.NotNull(t.
StateFile
); // "State file should be defined"
3828
Assert.True(File.Exists(t.
StateFile
.ItemSpec)); // "State file should exist"
3835
if (t.
StateFile
.ItemSpec.Equals(t.FilesWritten[i].ItemSpec))