示例#1
0
        public static void Test_DefaultTypeRelationMapper_Returns_Null_On_Invalid_Types(Type t)
        {
            //arrange
            ITypeRelationalMapper mapper = new DefaultTypeRelationalMapper();

            //assert
            Assert.IsNull(mapper.ResolveMappedType(t));
        }
示例#2
0
        public static void Test_DefaultTypeRelationMapper_Returns_Null_On_Invalid_Types(Type t)
        {
            //arrange
            ITypeRelationalMapper mapper = new DefaultTypeRelationalMapper();

            //assert
            Assert.IsNull(mapper.ResolveMappedType(t));
        }
示例#3
0
        public static void Test_DefaultTypeRelationMapper_Returns_Expected_Type(Type t)
        {
            //arrange
            ITypeRelationalMapper mapper = new DefaultTypeRelationalMapper();

            //act
            Type mappedType = mapper.ResolveMappedType(t);

            //assert
            //if it's an interface it should be MonoBehaviour
            Assert.AreEqual(typeof(UnityEngine.MonoBehaviour), mappedType);
        }
示例#4
0
        public static void Test_DefaultTypeRelationMapper_Returns_Expected_Type(Type t)
        {
            //arrange
            ITypeRelationalMapper mapper = new DefaultTypeRelationalMapper();

            //act
            Type mappedType = mapper.ResolveMappedType(t);

            //assert
            //if it's an interface it should be MonoBehaviour
            Assert.AreEqual(typeof(UnityEngine.MonoBehaviour), mappedType);
        }