예제 #1
0
        public void Register_GetType_return_null()
        {
            var registry = new MapRegistry();

            registry.Register <TestItem>().AliasTo("testObj");
            Assert.That(registry.GetType("TestOb"), Is.Null);
        }
예제 #2
0
        public void Register_GetType_return_type()
        {
            var registry = new MapRegistry();

            registry.Register <TestItem>().AliasTo("testObj");
            Assert.That(registry.GetType("TestObj"), Is.EqualTo(typeof(TestItem)));
        }