[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[])); }
static void Test(Type x, Type y = null) => Assert.IsInstanceOfType(GetRandom.Array(x), y);