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