Пример #1
0
        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.");
        }
Пример #2
0
        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.");
        }