📄 fixture.cs
字号:
using System;
using System.Collections;
using NHibernate.Cfg;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.NH606
{
public class HasNonGenericList
{
private int id;
private IList nonGenericList;
public virtual int Id
{
get { return id; }
set { id = value; }
}
public virtual IList NonGenericList
{
get { return nonGenericList; }
set { nonGenericList = value; }
}
}
[TestFixture]
public class Fixture
{
[Test, ExpectedException(typeof(MappingException))]
public void InvalidGenericMapping()
{
ISessionFactory sf = new Configuration()
.AddResource(typeof (Fixture).Namespace + ".Mapping.hbm.xml", typeof (Fixture).Assembly)
.BuildSessionFactory();
sf.Close();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -