private static void AssertModulesAreNotSelected(MigrationOptions options, params string[] moduleNames) { foreach (string moduleName in moduleNames) { var metadata = A.Fake <IMigrationMetadata>(); A.CallTo(() => metadata.ModuleName).Returns(moduleName); Assert.IsFalse(options.MigrationSelector(metadata), "Module '{0}' should not be selected.", moduleName); } }
private static void AssertModulesAreNotSelected(MigrationOptions options, params string[] moduleNames) { foreach (string moduleName in moduleNames) { var metadata = A.Fake<IMigrationMetadata>(); A.CallTo(() => metadata.ModuleName).Returns(moduleName); Assert.IsFalse(options.MigrationSelector(metadata), "Module '{0}' should not be selected.", moduleName); } }