示例#1
0
        public MainPage()
        {
            this.InitializeComponent();

            var dbPath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "test.db");

            NuGetTestClass.RunTests(dbPath);
        }
示例#2
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();


            var dbPath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "test.db");

            NuGetTestClass.RunTests(dbPath);
        }
示例#3
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            viewController            = new MyViewController();
            window.RootViewController = viewController;

            window.MakeKeyAndVisible();

            var conn = new SqliteConnection();             // we need a reference in order to stop the linker

            var dbPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "test.db");

            NuGetTestClass.RunTests(dbPath);

            return(true);
        }
示例#4
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById <Button>(Resource.Id.MyButton);

            button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); };

            var dbPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "test.db");

            NuGetTestClass.RunTests(dbPath);
        }
示例#5
0
        public MainPage()
        {
            InitializeComponent();

            NuGetTestClass.RunTests("test.db");
        }
示例#6
0
        static void Main(string[] args)
        {
            var dbPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "test.db");

            NuGetTestClass.RunTests(dbPath);
        }