예제 #1
0
        public void IsAssignableFromFails()
        {
            int[] array10 = new int[10];
            int[,] array2 = new int[2, 2];

            TypeAssert.IsAssignableFrom(array10, array2.GetType());
        }
예제 #2
0
        public void IsAssignableFrom()
        {
            int[] array10 = new int[10];
            int[] array2  = new int[2];

            TypeAssert.IsAssignableFrom(array10, array2.GetType());
            TypeAssert.IsAssignableFrom(array10, array2.GetType(), "Type Failure Message");
            TypeAssert.IsAssignableFrom(array10, array2.GetType(), "Type Failure Message", null);
        }