public static void Test_DefaultTypeRelationMapper_Returns_Null_On_Invalid_Types(Type t) { //arrange ITypeRelationalMapper mapper = new DefaultTypeRelationalMapper(); //assert Assert.IsNull(mapper.ResolveMappedType(t)); }
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); }