public void Register_GetType_return_null() { var registry = new MapRegistry(); registry.Register <TestItem>().AliasTo("testObj"); Assert.That(registry.GetType("TestOb"), Is.Null); }
public void Register_GetType_return_type() { var registry = new MapRegistry(); registry.Register <TestItem>().AliasTo("testObj"); Assert.That(registry.GetType("TestObj"), Is.EqualTo(typeof(TestItem))); }