public void TestClassDoesNotImplementInterfaces() { var attribute = new ExpandableAttribute(typeof(ITwo)); var obj = new GameObject().AddComponent <B>(); Assert.IsFalse(attribute.ValidateType(obj), $"{typeof(B)} must not pass validation."); }
public void TestClassImplementsInterfaces() { var attribute = new ExpandableAttribute(typeof(IOne)); var obj = new GameObject().AddComponent <A>(); Assert.IsTrue(attribute.ValidateType(obj), $"{typeof(A)} must pass validation."); }