コード例 #1
0
ファイル: Fixture.cs プロジェクト: marchlud/nhibernate-core
		private void DoTest(string name)
		{
			try
			{
				ISessionFactory factory =
					new Configuration().AddResource("NHibernate.Test.NHSpecificTest.NH642." + name + ".hbm.xml",
					                                typeof (Fixture).Assembly).BuildSessionFactory();
				factory.Close();
			}
			catch (MappingException me)
			{
				PropertyNotFoundException found = null;
				Exception find = me;
				while (find != null)
				{
					found = find as PropertyNotFoundException;
					find = find.InnerException;
				}
				Assert.IsNotNull(found, "The PropertyNotFoundException is not present in the Exception tree.");
			}
		}