コード例 #1
0
        public void Compat()
        {
            Assert.IsTrue(intColA.IsElementCompatible(7));
            Assert.IsTrue(intColA.IsCollectionCompatible(intColB));
            Assert.IsTrue(intColA.IsCollectionCompatible(new int[] { 1 }));
            Assert.IsTrue(intColA.IsCollectionCompatible(new List <int>()));
            Assert.IsTrue(intColA.IsCollectionCompatible(new List <Fungus.IntegerVariable>()));

            Assert.IsFalse(intColA.IsElementCompatible(Vector3.up));
            Assert.IsFalse(intColA.IsCollectionCompatible(goCol));
            Assert.IsFalse(intColA.IsCollectionCompatible(new Color[] { Color.white }));
            Assert.IsFalse(intColA.IsCollectionCompatible(new List <Material>()));
            Assert.IsFalse(intColA.IsCollectionCompatible(new List <Fungus.StringVariable>()));
        }