public void SQliteKeeperIOSTest()
        {
            sQLite.Save(testDrawModel);

            actualDrawModel = sQLite.Load();

            Assert.AreEqual(testDrawModel.CurrentLineWidth, actualDrawModel.CurrentLineWidth);
            Assert.AreEqual(testDrawModel.CurrentColor, actualDrawModel.CurrentColor);
            Assert.AreEqual(testDrawModel.Paths.Count, actualDrawModel.Paths.Count);
        }
示例#2
0
        public void SQLiteKeeperDroidTest()
        {
            string pathOne = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            string dbPath  = System.IO.Path.Combine(pathOne, "ormbase.db3");

            sqlite = new Paint.Keeper.SQLiteKepper(dbPath);
            sqlite.Save(testDrawModel);

            actualDrawModel = sqlite.Load();

            Assert.AreEqual(testDrawModel.CurrentLineWidth, actualDrawModel.CurrentLineWidth);
            Assert.AreEqual(testDrawModel.CurrentColor, actualDrawModel.CurrentColor);
            Assert.AreEqual(testDrawModel.Paths.Count, actualDrawModel.Paths.Count);
        }