public void TestGetImplType() { var target = new TestImplementedClass(); var actual = target.GetType().GetImplType(); Assert.AreEqual(typeof(string), actual); }
public void TestImplType() { var actual = new TestImplementedClass(); var attrs = actual.GetType().GetCustomAttributes(typeof(ImplementationAttribute), true); Assert.IsNotNull(attrs); Assert.Greater(attrs.Length, 0); ImplementationAttribute attr = (ImplementationAttribute)attrs[0]; Assert.AreEqual(typeof(string), attr.ImplType); }