LoadTestAssembly() public method

Load the tests from the given assembly.
public LoadTestAssembly ( Assembly testAssembly ) : void
testAssembly System.Reflection.Assembly The assembly from which to load tests.
return void
 /// <summary>
 /// Initialize the test harness.
 /// </summary>
 static App()
 {
     Harness = new TestHarness();
     Harness.Platform = TestPlatform.WindowsStore;
     Harness.LoadTestAssembly(typeof(FunctionalTestBase).GetTypeInfo().Assembly);
     Harness.LoadTestAssembly(typeof(LoginTests).GetTypeInfo().Assembly);
 }
 /// <summary>
 /// Initialize the test harness.
 /// </summary>
 static App()
 {
     Harness = new TestHarness();
     Harness.LoadTestAssembly(typeof(FunctionalTestBase).Assembly);
     Harness.LoadTestAssembly(typeof(LoginTests).Assembly);
     Harness.Platform = string.Format("Win Phone 8.0|sdk v{0}|", TestPlatform.GetMobileServicesSdkVersion(typeof(App).Assembly));
 }
 /// <summary>
 /// Initialize the test harness.
 /// </summary>
 static App()
 {
     Harness = new TestHarness();
     Harness.LoadTestAssembly(typeof(FunctionalTestBase).Assembly);
     Harness.LoadTestAssembly(typeof(LoginTests).Assembly);
     Harness.Platform = TestPlatform.WindowsPhone8;
 }
	    static AppDelegate()
	    {
            CurrentPlatform.Init();

	        Harness = new TestHarness();
            Harness.LoadTestAssembly(typeof(MobileServiceSerializerTests).GetTypeInfo().Assembly);
            Harness.LoadTestAssembly(typeof(PushFunctional).GetTypeInfo().Assembly);
	    }
        static AppDelegate()
        {
            CurrentPlatform.Init();

            Harness = new TestHarness();
            Harness.Platform = TestPlatform.XamariniOS;
            Harness.LoadTestAssembly(typeof(FunctionalTestBase).GetTypeInfo().Assembly);
            Harness.LoadTestAssembly(typeof(PushFunctional).GetTypeInfo().Assembly);
        }
        static AppDelegate()
        {
            CurrentPlatform.Init();

            Harness = new TestHarness();
            Harness.Platform = string.Format("Xamarin.iOS|sdk v{0}|", TestPlatform.GetMobileServicesSdkVersion(typeof(AppDelegate).GetTypeInfo().Assembly));
            Harness.LoadTestAssembly(typeof(FunctionalTestBase).GetTypeInfo().Assembly);
            Harness.LoadTestAssembly(typeof(PushFunctional).GetTypeInfo().Assembly);
        }
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Suspending += OnSuspending;
            HardwareButtons.BackPressed += HardwareButtons_BackPressed;

            Harness = new TestHarness();
            Harness.LoadTestAssembly(typeof(MobileServiceSerializerTests).GetTypeInfo().Assembly);
            Harness.LoadTestAssembly(typeof(AuthenticationBrokerTest).GetTypeInfo().Assembly);
        }
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Suspending += OnSuspending;
            HardwareButtons.BackPressed += HardwareButtons_BackPressed;

            Harness = new TestHarness();
            Harness.Platform = string.Format("Win Phone 8.1|sdk v{0}|", TestPlatform.GetMobileServicesSdkVersion(typeof(App).GetTypeInfo().Assembly));
            Harness.LoadTestAssembly(typeof(FunctionalTestBase).GetTypeInfo().Assembly);
            Harness.LoadTestAssembly(typeof(PushFunctional).GetTypeInfo().Assembly);
        }
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Suspending += OnSuspending;
            HardwareButtons.BackPressed += HardwareButtons_BackPressed;

            Harness = new TestHarness();
            Harness.LoadTestAssembly(typeof(MobileServiceSerializerTests).GetTypeInfo().Assembly);            
            Harness.LoadTestAssembly(typeof(PushFunctional).GetTypeInfo().Assembly);
            //Harness.LoadTestAssembly(typeof(LoginTests).GetTypeInfo().Assembly);
        }
Esempio n. 10
0
        static App()
        {
            CurrentPlatform.Init();

            Harness = new TestHarness();
            Harness.Platform = TestPlatform.XamarinAndroid;

            Harness.Reporter = Listener;
            Harness.LoadTestAssembly(typeof(FunctionalTestBase).Assembly);
            Harness.LoadTestAssembly(typeof(PushFunctional).Assembly);
        }
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Suspending += OnSuspending;
            HardwareButtons.BackPressed += HardwareButtons_BackPressed;

            Harness = new TestHarness();
            Harness.Platform = TestPlatform.WindowsPhone81;
            Harness.LoadTestAssembly(typeof(FunctionalTestBase).GetTypeInfo().Assembly);
            Harness.LoadTestAssembly(typeof(PushFunctional).GetTypeInfo().Assembly);
        }
 /// <summary>
 /// Initializes the singleton application object.  This is the first line of authored code
 /// executed, and as such is the logical equivalent of main() or WinMain().
 /// </summary>
 public App()
 {
     this.InitializeComponent();
     this.Suspending += OnSuspending;
     Harness = new TestHarness
     {
         Platform = TestPlatform.UniversalWindowsPlatform
     };
     Harness.LoadTestAssembly(typeof(FunctionalTestBase).GetTypeInfo().Assembly);
     Harness.LoadTestAssembly(typeof(LoginTests).GetTypeInfo().Assembly);
 }
Esempio n. 13
0
        static App()
        {
            CurrentPlatform.Init();
            OfflineTests.StoreFileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "test.db");
            Harness = new TestHarness();
            Harness.Platform = TestPlatform.XamarinAndroid;

            Harness.Reporter = Listener;
            Harness.LoadTestAssembly(typeof(FunctionalTestBase).Assembly);
            Harness.LoadTestAssembly(typeof(PushFunctional).Assembly);
        }
Esempio n. 14
0
        static App()
        {
            CurrentPlatform.Init();

            Harness = new TestHarness();
            Harness.Platform = string.Format("Xamarin.Android|sdk v{0}|", TestPlatform.GetMobileServicesSdkVersion(typeof(App).GetTypeInfo().Assembly));

            Harness.Reporter = Listener;
            Harness.LoadTestAssembly(typeof(FunctionalTestBase).Assembly);
            Harness.LoadTestAssembly(typeof(PushFunctional).Assembly);
        }
        /// <summary>
        /// Initialize the test harness.
        /// </summary>
        static App()
        {
            ConsoleHelper.Attach();

            Harness = new TestHarness();
            Harness.LoadTestAssembly(typeof(MobileServiceSerializerTests).GetTypeInfo().Assembly);
        }
	    static AppDelegate()
	    {
            CurrentPlatform.Init();

	        Harness = new TestHarness();
            Harness.LoadTestAssembly(typeof(SQLiteStoreTests).Assembly);
	    }
Esempio n. 17
0
 /// <summary>
 /// Initialize the test harness.
 /// </summary>
 static App()
 {
     Harness = new TestHarness();
     Harness.LoadTestAssembly(typeof(MobileServiceSerializerTests).Assembly);
     Harness.LoadTestAssembly(typeof(LoginTests).Assembly);
 }
 /// <summary>
 /// Initialize the test harness.
 /// </summary>
 static App()
 {
     ConsoleHelper.Attach();
     Harness = new TestHarness();
     Harness.LoadTestAssembly(typeof(SQLiteStoreTests).GetTypeInfo().Assembly);
 }
 /// <summary>
 /// Initialize the test harness.
 /// </summary>
 static App()
 {
     Harness = new TestHarness();
     Harness.Platform = TestPlatform.Net45;
     Harness.LoadTestAssembly(typeof(FunctionalTestBase).GetTypeInfo().Assembly);
 }
 /// <summary>
 /// Initialize the test harness.
 /// </summary>
 static App()
 {
     Harness = new TestHarness();
     Harness.LoadTestAssembly(typeof(MobileServiceSerializerTests).GetTypeInfo().Assembly);
     Harness.LoadTestAssembly(typeof(AuthenticationBrokerTest).GetTypeInfo().Assembly);
 }
Esempio n. 21
0
 /// <summary>
 /// Initialize the test harness.
 /// </summary>
 static App()
 {
     Harness = new TestHarness();
     Harness.LoadTestAssembly(typeof(App).GetTypeInfo().Assembly);
 }
 /// <summary>
 /// Initialize the test harness.
 /// </summary>
 static App()
 {
     Harness = new TestHarness();
     Harness.LoadTestAssembly(typeof(SQLiteStoreTests).Assembly);
 }
 /// <summary>
 /// Initialize the test harness.
 /// </summary>
 static App()
 {
     Harness = new TestHarness();
     Harness.Platform = string.Format("Net 45|sdk v{0}|", TestPlatform.GetMobileServicesSdkVersion(typeof(App).GetTypeInfo().Assembly));
     Harness.LoadTestAssembly(typeof(FunctionalTestBase).GetTypeInfo().Assembly);
 }