public void TestStateIcons() { foreach (StateIcon icon in Enum.GetValues(typeof(StateIcon))) { Assert.That(mapper.GetStateIcon(icon), Is.GreaterThanOrEqualTo(0), "Failed with value: {0}", icon); } }
private void UpdateText() { IFileIconMapper mapper = Context.GetService <IFileIconMapper>(); ImageIndex = GetIcon(mapper); StateImageIndex = mapper.GetStateIcon(GetIcon(_status)); SetValues( _item.Status.ChangeList, _item.Directory, _item.FullPath, _localStatus.PendingCommitText, (_status.RemoteLock != null) ? PCResources.LockedValue : "", // Locked SafeDate(_item.Modified), _item.Name, GetRelativePath(_item), GetProject(_item), _remoteStatus.PendingCommitText, Context.GetService <IFileIconMapper>().GetFileType(_item), SafeWorkingCopy(_item)); }