Exemple #1
0
        public void Delete()
        {
            var testClass = new EmptyClass();
            Assert.Throws<NotFoundException>(() => testClass.Delete());

            testClass.Save();
            Assert.False(testClass.IsDeleted());
            testClass.Delete();
            Assert.True(testClass.IsDeleted());
            Assert.Throws<NotFoundException>(() => testClass.Delete());
        }
Exemple #2
0
        public void Delete()
        {
            var testClass = new EmptyClass();

            Assert.Throws <NotFoundException>(() => testClass.Delete());

            testClass.Save();
            Assert.False(testClass.IsDeleted());
            testClass.Delete();
            Assert.True(testClass.IsDeleted());
            Assert.Throws <NotFoundException>(() => testClass.Delete());
        }