fixture.cs

来自「NHibernate NET开发者所需的」· CS 代码 · 共 29 行

CS
29
字号
using System.Reflection;
using NHibernate.Cfg;
using NUnit.Framework;

namespace NHibernate.Test.NHSpecificTest.NH1355
{
	//http://jira.nhibernate.org/browse/NH-1355
	//http://jira.nhibernate.org/browse/NH-1377
	[TestFixture]
	public class Fixture
	{
		[Test]
		public void Bug()
		{
			Configuration cfg = new Configuration();
			Assembly domain = typeof(Category).Assembly;
			cfg.AddResource("NHibernate.Test.NHSpecificTest.NH1355.Category.hbm.xml", domain);
			
			try
			{
				cfg.BuildSessionFactory();
			}
			catch (MappingException)
			{
				Assert.Fail("Should not throw exception");
			}
		}
	}
}

⌨️ 快捷键说明

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