public void can_run_setup_method_when_setup_does_not_exist() { var migration = new Migration(typeof(MigrationTestType2)); Assert.IsNotNull(migration); mocks.ReplayAll(); migration.Setup(setupRunner, new TestLogger(), opRepos); mocks.VerifyAll(); }
public void can_run_setup_method_when_setup_exists() { var migration = new Migration(typeof(MigrationTestType)); Assert.IsNotNull(migration); Expect.Call(() => opRepos.Register<IGenericOperation>(typeof(String))); mocks.ReplayAll(); migration.Setup(setupRunner, new TestLogger(), opRepos); mocks.VerifyAll(); }