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

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

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