예제 #1
0
        public void edit_table_by_existing_name_failed()
        {
            UnitOfWorkMock.AnyActual(
                Arg.Any <Expression <Func <Table, bool> > >()).Returns(true);

            Assert.Throws <InvalidOperationException>(() => Execute());
        }
예제 #2
0
        public void add_table_with_same_name_faild(AddTableCommand command)
        {
            UnitOfWorkMock.AnyActual(
                Arg.Any <Expression <Func <Table, bool> > >()).Returns(true);

            Assert.Throws <InvalidOperationException>(() => Execute());
        }