Esempio n. 1
0
        /// <summary>
        /// Discover a collection of test cases.
        /// </summary>
        /// <param name="discoveryInfoPath">Path to Discovery Info. If path is relative, it will interpreted as relative to the current directory.</param>
        /// <param name="filteringSettings">Filtering settings.</param>
        /// <returns></returns>
        public static TestRecords Discover(FileInfo discoveryInfoPath, FilteringSettings filteringSettings)
        {
            Profiler.StartMethod();

            IEnumerable <TestInfo> testInfos = DiscoveryEngine.Discover(discoveryInfoPath, filteringSettings);
            TestRecords            tests     = new TestRecords();

            foreach (TestInfo testInfo in testInfos)
            {
                TestRecord testRecord = new TestRecord();
                testRecord.TestInfo = testInfo;
                tests.TestCollection.Add(testRecord);
            }
            Profiler.EndMethod();
            return(tests);
        }
Esempio n. 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            SetContentView(Resource.Layout.ActivityTabbed);

            Navigation = FindViewById <BottomNavigationView>(Resource.Id.navigation);
            Navigation.SetOnNavigationItemSelectedListener(this);
            FManager  = FragmentManager;
            M_SERVICE = this;
            OnNavigationItemSelected(Navigation.Menu.GetItem(0));
            mTransferEngine  = Nearby.GetTransferEngine(this);
            mWifiShareEngine = Nearby.GetWifiShareEngine(this);
            mDiscoveryEngine = Nearby.GetDiscoveryEngine(this);
            Adapter          = new ExpandableAdapter(this, AvaliableDevicesList);
            RequestPermissions();
        }