コード例 #1
0
        public void TestGetImplType_Null()
        {
            var target = new TestImplementationNull();
            var actual = target.GetType().GetImplType();

            Assert.IsNull(actual);
        }
コード例 #2
0
        public void TestImplType_Null()
        {
            var actual = new TestImplementationNull();
            var attrs = actual.GetType().GetCustomAttributes(typeof(ImplementationAttribute), true);
            Assert.IsNotNull(attrs);
            Assert.Greater(attrs.Length, 0);
            ImplementationAttribute attr = (ImplementationAttribute)attrs[0];

            Assert.IsNull(attr.ImplType);
        }