public void Derives_valid_filename_from_session_factory_ID_when_not_explicitly_specified()
		{
			var configurationPersister = MockRepository.GenerateMock<IConfigurationPersister>();
			configurationPersister.Expect(x => x.IsNewConfigurationRequired(null, null))
				.IgnoreArguments()
				.Constraints(Is.Equal("sessionFactory1.dat"), Is.Anything())
				.Return(false);

			var builder = new PersistentConfigurationBuilder(configurationPersister);
			builder.GetConfiguration(facilityCfg);

			configurationPersister.VerifyAllExpectations();
		}
		public void Includes_mapping_assemblies_in_dependent_file_list()
		{
			var configurationPersister = MockRepository.GenerateMock<IConfigurationPersister>();
			configurationPersister.Expect(x => x.IsNewConfigurationRequired(null, null))
				.IgnoreArguments()
				.Constraints(Is.Anything(),
				             List.ContainsAll(new[] {"Castle.Facilities.NHibernateIntegration.Tests.dll" }))
				.Return(false);

			var builder = new PersistentConfigurationBuilder(configurationPersister);
			builder.GetConfiguration(facilityCfg);

			configurationPersister.VerifyAllExpectations();
		}