Example #1
0
        public async void Run(TestListNode node)
        {
            var ui = MacUI.Instance;

            var parameters = new RunParameters(node.TestCase.Session, node.TestCase.Test);
            var result     = await ui.TestRunner.Run.Execute(parameters);

            var model = new TestResultModel(node.TestCase.Session, result);

            node.AddChild(model);
        }
Example #2
0
        public void AddChild(TestListNode child)
        {
            WillChangeValue("isLeaf");
            WillChangeValue("childNodes");

            InitializeChildren();

            children.Add(child);
            child.parent = this;

            DidChangeValue("isLeaf");
            DidChangeValue("childNodes");
        }
Example #3
0
        public void RemoveChild(TestListNode child)
        {
            WillChangeValue("isLeaf");
            WillChangeValue("childNodes");

            InitializeChildren();

            var length = children.Count;

            for (nuint i = 0; i < length; i++)
            {
                if (children.GetItem <TestListNode> (i) == child)
                {
                    children.RemoveObject((nint)i);
                    break;
                }
            }

            child.parent = null;

            DidChangeValue("isLeaf");
            DidChangeValue("childNodes");
        }
Example #4
0
 public void Clear(TestListNode node)
 {
     node.RemoveAllChildren();
 }