示例#1
0
        public void NSStackViewShouldInsertView()
        {
            view.AddView(first, NSStackViewGravity.Trailing);
            view.AddView(second, NSStackViewGravity.Trailing);

            view.InsertView(third, 1, NSStackViewGravity.Trailing);

            Assert.IsTrue(view.Views.Length == 3, "NSStackViewShouldInsertView - Wrong number of views");
            Assert.IsTrue(view.Views [1] == third, "NSStackViewShouldInsertView - New view not inserted at the correct location");
        }