예제 #1
0
        public void op_Delete_whenStorageDefined()
        {
            var obj = new Lexicon(NormalityComparer.Ordinal);

            var storage = new Mock<IStoreLexicon>();
            storage.Setup(x => x.Delete(obj)).Verifiable();

            obj.Storage = storage.Object;

            obj.Delete();

            storage.VerifyAll();
        }
예제 #2
0
        public void op_Delete_IStoreLexicon()
        {
            var obj = new Lexicon(NormalityComparer.Ordinal);

            var storage = new Mock<IStoreLexicon>();
            storage.Setup(x => x.Delete(obj)).Verifiable();

            obj.Delete(storage.Object);

            Assert.Same(storage.Object, obj.Storage);

            storage.VerifyAll();
        }
예제 #3
0
        public void op_Delete_whenStorageDefined()
        {
            var obj = new Lexicon(NormalityComparer.Ordinal);

            var storage = new Mock <IStoreLexicon>();

            storage.Setup(x => x.Delete(obj)).Verifiable();

            obj.Storage = storage.Object;

            obj.Delete();

            storage.VerifyAll();
        }
예제 #4
0
        public void op_Delete_IStoreLexicon()
        {
            var obj = new Lexicon(NormalityComparer.Ordinal);

            var storage = new Mock <IStoreLexicon>();

            storage.Setup(x => x.Delete(obj)).Verifiable();

            obj.Delete(storage.Object);

            Assert.Same(storage.Object, obj.Storage);

            storage.VerifyAll();
        }