Пример #1
0
        [TestMethod] public void ArrayTest()
        {
            void test(Type x, Type y = null) => Assert.IsInstanceOfType(GetRandom.Array(x), y);

            test(typeof(bool), typeof(bool[]));
            test(typeof(char), typeof(char[]));
            test(typeof(Color), typeof(Color[]));
            test(typeof(int), typeof(int[]));
        }
Пример #2
0
 static void Test(Type x, Type y = null) => Assert.IsInstanceOfType(GetRandom.Array(x), y);