public void MenuItemTextContainsAgeString_10mins() { var file = new FileInfo { Path = "File1", HostName = "Host", LastModified = DateTime.Now.AddMinutes(-10) }; _file.AddVersion(file); _testObject = new VersionedFileMenu(_file); Assert.True(_testObject.MenuItem.Text.Contains(">10 mins")); }
public void SetUp() { _file = new VersionedFile("SomeFilename"); _testObject = new VersionedFileMenu(_file); }