Ejemplo n.º 1
0
        public void GetIdTest()
        {
            VerifyExists();
            long id = GlobalList.GetId(_databasePath, _caliberTest, out _errOut);

            TestContext.WriteLine($"IS: {id}");
            General.HasTrueValue(id > 0, _errOut);
        }
Ejemplo n.º 2
0
        public void DeleteTest()
        {
            VerifyDoesntExist();
            VerifyExists();
            long id    = GlobalList.GetId(_databasePath, _caliberTest, out _errOut);
            bool value = GlobalList.Delete(_databasePath, id, out _errOut);

            General.HasTrueValue(value, _errOut);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Verifies the doesnt exist.
        /// </summary>
        private void VerifyDoesntExist()
        {
            if (GlobalList.Exists(_databasePath, _caliberTest, out _errOut))
            {
                long id    = GlobalList.GetId(_databasePath, _caliberTest, out _errOut);
                bool value = GlobalList.Delete(_databasePath, id, out _errOut);
            }

            if (GlobalList.Exists(_databasePath, _caliberTestUpdate, out _errOut))
            {
                long id    = GlobalList.GetId(_databasePath, _caliberTestUpdate, out _errOut);
                bool value = GlobalList.Delete(_databasePath, id, out _errOut);
            }
        }