示例#1
0
        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"));
        }
示例#2
0
 public void SetUp()
 {
     _file       = new VersionedFile("SomeFilename");
     _testObject = new VersionedFileMenu(_file);
 }