Exemple #1
0
        async void ResolveTestCase()
        {
            var serialized = Result.Path.SerializePath();
            var result     = await Session.ResolveFromPath(serialized, CancellationToken.None);

            WillChangeValue("TestCase");
            testCase = await TestCaseModel.Create(Session, result);

            DidChangeValue("TestCase");
        }
Exemple #2
0
        async void OnSessionChanged(TestSession session)
        {
            if (session != null)
            {
                var test = session.RootTestCase;
                if (test != null)
                {
                    var model = await TestCaseModel.Create(session, test);

                    TestResultController.AddObject(model);
                }
            }
            else
            {
                var array  = (NSArray)TestResultController.Content;
                var length = (int)array.Count;
                for (int i = 0; i < length; i++)
                {
                    var index = NSIndexPath.FromIndex(0);
                    TestResultController.RemoveObjectAtArrangedObjectIndexPath(index);
                }
            }
        }