⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fixture.cs

📁 NHibernate NET开发者所需的
💻 CS
字号:
using System;
using NHibernate.Cfg;
using NUnit.Framework;

namespace NHibernate.Test.NHSpecificTest.NH712
{
	//<summary>Improve returned error message when default constructor is not present on a class mapped as a component</summary> 
	//<type id="4">Improvement</type> 
	//<priority id="4">Minor</priority> 
	//<created>Fri, 15 Sep 2006 07:31:13 -0400 (EDT)</created> 
	//<version>1.2.0.Alpha1</version> 
	//<component>Core</component> 
  //<link>http://jira.nhibernate.org/browse/NH-712</link> 
	[TestFixture]
	public class Fixture
	{
		[Test, ExpectedException(typeof(InstantiationException))]
		public void Bug()
		{
			if (!Cfg.Environment.UseReflectionOptimizer)
			{
				Assert.Ignore("Test only works with reflection optimization enabled");
			}
			else
				new Configuration()
					.AddResource(GetType().Namespace + ".Mappings.hbm.xml", GetType().Assembly)
					.BuildSessionFactory();
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -