Esempio n. 1
0
        public void TestGetSingleKey()
        {
            var          container = new TestContainer();
            PropertyInfo key       = container.GetSingleKey(typeof(TestKey));

            Assert.AreSame(typeof(TestKey).GetProperty("AName"), key);
        }
Esempio n. 2
0
        public void TestGetSingleMultiKey()
        {
            var container = new TestContainer();

            try {
                PropertyInfo key = container.GetSingleKey(typeof(TestMultiKey));
                Assert.Fail("Exception expected");
            }
            catch (DomainException) {
                // expected
            }
        }