Library/Library.Test/TestTempFiles.cs
C# | Copy Code |
---|---|
TempDirectory dir; using(dir = new TempDirectory()) { Assert.IsTrue(dir.Exists); dir.Delete(); Assert.IsFalse(dir.Exists); } |
VB.NET | Copy Code |
---|---|
Dim dir As TempDirectory Using dir = New TempDirectory() Assert.IsTrue(dir.Exists) dir.Delete() Assert.IsFalse(dir.Exists) End Using |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
TempDirectory ClassTempDirectory Members