Пример #1
0
 /// <summary>
 /// Verifies the exists.
 /// </summary>
 private void VerifyExists()
 {
     if (!GlobalList.Exists(_databasePath, _caliberTest, out _errOut))
     {
         bool value = GlobalList.Add(_databasePath, _caliberTest, out _errOut);
     }
 }
Пример #2
0
        public void ExistsTest()
        {
            VerifyExists();
            bool value = GlobalList.Exists(_databasePath, _caliberTest, out _errOut);

            General.HasTrueValue(value, _errOut);
        }
Пример #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);
            }
        }