Library/Library.Test/TestTempFiles.cs
| C# | Copy Code |
|---|---|
TempFile f = new TempFile();
f.Length = 5;
Assert.AreEqual(f.Length, f.Info.Length);
f.Dispose();
Assert.AreEqual(0, f.Length); | |
| VB.NET | Copy Code |
|---|---|
Dim f As New TempFile() f.Length = 5 Assert.AreEqual(f.Length, f.Info.Length) f.Dispose() Assert.AreEqual(0, f.Length) | |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7