7 writes to StronglyTypedFileName
Microsoft.Build.Tasks.UnitTests (7)
ResourceHandling\GenerateResource_Tests.cs (7)
1370
t.
StronglyTypedFileName
= strFile;
1411
t.
StronglyTypedFileName
= strFile;
2423
t.
StronglyTypedFileName
= "somefile.cs";
2840
t.
StronglyTypedFileName
= NativeMethodsShared.IsWindows ? "||" : "\0";
2952
t.
StronglyTypedFileName
= "myfile";
2996
t.
StronglyTypedFileName
= dir;
3501
t.
StronglyTypedFileName
= "boo";
29 references to StronglyTypedFileName
Microsoft.Build.Tasks.UnitTests (29)
ResourceHandling\GenerateResource_Tests.cs (29)
1201
File.Delete(t.
StronglyTypedFileName
);
1279
File.Delete(t.
StronglyTypedFileName
);
1424
Assert.Equal(t.
StronglyTypedFileName
, strFile);
1508
File.Delete(t.
StronglyTypedFileName
);
1544
Assert.Equal(t.
StronglyTypedFileName
, STRfile);
1552
Utilities.AssertLogContainsResource(t, "GenerateResource.CreatingSTR", t.
StronglyTypedFileName
);
1555
Assert.DoesNotContain("namespace", File.ReadAllText(t.
StronglyTypedFileName
));
1561
File.Delete(t.
StronglyTypedFileName
);
1602
Assert.Equal(t.
StronglyTypedFileName
, STRfile);
1610
Utilities.AssertLogContainsResource(t, "GenerateResource.CreatingSTR", t.
StronglyTypedFileName
);
1612
string generatedSource = File.ReadAllText(t.
StronglyTypedFileName
);
1627
FileUtilities.DeleteNoThrow(t.
StronglyTypedFileName
);
2115
Utilities.AssertLogContainsResource(t, "GenerateResource.CreatingSTR", t.
StronglyTypedFileName
);
2117
Utilities.AssertLogContains(t, t.
StronglyTypedFileName
);
2121
File.Delete(t.
StronglyTypedFileName
);
2431
Utilities.AssertLogContainsResource(t, "GenerateResource.CreatingSTR", t.
StronglyTypedFileName
);
2432
Assert.Equal(t.StronglyTypedClassName, Path.GetFileNameWithoutExtension(t.
StronglyTypedFileName
));
2434
Assert.Contains("public class " + t.StronglyTypedClassName, File.ReadAllText(t.
StronglyTypedFileName
));
2442
File.Delete(t.
StronglyTypedFileName
);
2473
Utilities.AssertLogContainsResource(t, "GenerateResource.CreatingSTR", t.
StronglyTypedFileName
);
2475
Assert.Equal(t.
StronglyTypedFileName
, Path.ChangeExtension(t.Sources[0].ItemSpec, ".cs"));
2476
Assert.True(File.Exists(t.
StronglyTypedFileName
));
2481
Assert.Contains("internal class " + t.StronglyTypedClassName, File.ReadAllText(t.
StronglyTypedFileName
));
2487
File.Delete(t.
StronglyTypedFileName
);
4256
Assert.Equal(Path.ChangeExtension(t.Sources[0].ItemSpec, codeFileExtension), t.
StronglyTypedFileName
);
4257
Assert.Equal(t.FilesWritten[2].ItemSpec, t.
StronglyTypedFileName
);
4260
Assert.True(File.Exists(t.
StronglyTypedFileName
));
4292
Utilities.AssertLogContainsResource(t, "GenerateResource.CreatingSTR", t.
StronglyTypedFileName
);
4298
File.Delete(t.
StronglyTypedFileName
);