Ejemplo n.º 1
0
        public void NSPathControlItemShouldSetAttributedTitle()
        {
            var item            = new NSPathControlItem();
            var attributedTitle = item.AttributedTitle;

            item.AttributedTitle = new NSAttributedString("Test");

            Assert.IsTrue(item.AttributedTitle != attributedTitle, "NSPathControlShouldSetAttributedTitle - AttributedTitle value did not change.");
        }
Ejemplo n.º 2
0
        public void NSPathControlItemShouldSetImage()
        {
            var item = new NSPathControlItem();

            Assert.IsTrue(item.Image == null, "NSPathControlItemShouldSetImage - Image did not start as null");

            item.Image = new NSImage();
            Assert.IsTrue(item.Image != null, "NSPathControlItemShouldSetImage - Failed to set Image property");
        }
Ejemplo n.º 3
0
        public void NSPathControlItemShouldSetTitle()
        {
            var item  = new NSPathControlItem();
            var title = item.Title;

            item.Title = "Test";

            Assert.IsTrue(item.Title != title, "NSPathControlShouldSetTitle - Title value did not change.");
        }
Ejemplo n.º 4
0
 public void UpdatePathItem(NSPathControlItem pathItem)
 {
     pathItem.Title = title;
     pathItem.Image = image;
 }