Exemple #1
0
        public void TestRemoveValid()
        {
            var db = new IntDatabase(1);

            db.Remove();
            var field = GetDataArray();

            var values = (int[])field.GetValue(db);

            Assert.That(values[0], Is.EqualTo(0));
        }
Exemple #2
0
        public void RemoveWhenEmptyArray()
        {
            var db = new IntDatabase();

            Assert.That(() => db.Remove(), Throws.InvalidOperationException);
        }