Beispiel #1
0
        public void TestGetPropertyType()
        {
            Assert.AreEqual(typeof(string), _prop.GetPropertyType(_eventType, SupportEventAdapterService.Service));

            Assert.IsNull(_invalidDummy.GetGetter(_eventType, SupportEventAdapterService.Service));
            Assert.IsNull(_invalidPropMap.GetGetter(_eventType, SupportEventAdapterService.Service));
            Assert.IsNull(_invalidPropIndexed.GetGetter(_eventType, SupportEventAdapterService.Service));
        }
        public void TestGetPropertyType()
        {
            Assert.AreEqual(typeof(string), _prop.GetPropertyType(_eventType, _container.Resolve <EventAdapterService>()));

            Assert.IsNull(_invalidDummy.GetGetter(_eventType, _container.Resolve <EventAdapterService>()));
            Assert.IsNull(_invalidPropMap.GetGetter(_eventType, _container.Resolve <EventAdapterService>()));
            Assert.IsNull(_invalidPropIndexed.GetGetter(_eventType, _container.Resolve <EventAdapterService>()));
        }