We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf73693 commit 7d73a0cCopy full SHA for 7d73a0c
dotnet/test/DotNetUnitTest/FileIO/FileIOTests.cs
@@ -167,17 +167,13 @@ public void Length_ShouldUpdate_WhenFileChanges()
167
gxFile.Close();
168
169
long initialLength = gxFile.GetLength();
170
- DateTime initialLastModified = gxFile.GetLastModified();
171
- Thread.Sleep(1);
172
173
gxFile.Open(string.Empty);
174
gxFile.WriteLine("Additional content");
175
176
177
long updatedLength = gxFile.GetLength();
178
- DateTime updatedLastModified= gxFile.GetLastModified();
179
Assert.NotEqual(initialLength, updatedLength);
180
- Assert.NotEqual(initialLastModified, updatedLastModified);
181
}
182
183
0 commit comments