public void TestGetSingleKey() { var container = new TestContainer(); PropertyInfo key = container.GetSingleKey(typeof(TestKey)); Assert.AreSame(typeof(TestKey).GetProperty("AName"), key); }
public void TestGetSingleMultiKey() { var container = new TestContainer(); try { PropertyInfo key = container.GetSingleKey(typeof(TestMultiKey)); Assert.Fail("Exception expected"); } catch (DomainException) { // expected } }