Beispiel #1
0
    public static void GenericClassInstanceMethod()
    {
        GenericClass<int>.classParameterType = typeof(int);
        GenericClass<string>.classParameterType = typeof(string);
        GenericClass<int[]>.classParameterType = typeof(int[]);
        GenericClass<string[]>.classParameterType = typeof(string[]);

        GenericClass<int> GenericClassInt = new GenericClass<int>();
        GenericClass<string> GenericClassString = new GenericClass<string>();
        GenericClass<int[]> GenericClassIntArray = new GenericClass<int[]>();
        GenericClass<string[]> GenericClassStringArray = new GenericClass<string[]>();

        if (GenericClassInt.GenericMethod<int>(1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassInt.GenericMethod<int>(1, typeof(int)) to be 1, but found '" + GenericClassInt.GenericMethod<int>(1, typeof(int)) + "'");
        }

        if (GenericClassInt.GenericMethod<string>("aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassInt.GenericMethod<string>(\"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassInt.GenericMethod<string>("aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassInt.GenericMethod<int[]>(new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassInt.GenericMethod<int[]>(new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassInt.GenericMethod<int[]>(new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassInt.GenericMethod<string[]>(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassInt.GenericMethod<string[]>(new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassInt.GenericMethod<string[]>(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassString.GenericMethod<int>(1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassString.GenericMethod<int>(1, typeof(int)) to be 1, but found '" + GenericClassString.GenericMethod<int>(1, typeof(int)) + "'");
        }

        if (GenericClassString.GenericMethod<string>("aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassString.GenericMethod<string>(\"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassString.GenericMethod<string>("aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassString.GenericMethod<int[]>(new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassString.GenericMethod<int[]>(new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassString.GenericMethod<int[]>(new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassString.GenericMethod<string[]>(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassString.GenericMethod<string[]>(new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassString.GenericMethod<string[]>(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassIntArray.GenericMethod<int>(1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.GenericMethod<int>(1, typeof(int)) to be 1, but found '" + GenericClassIntArray.GenericMethod<int>(1, typeof(int)) + "'");
        }

        if (GenericClassIntArray.GenericMethod<string>("aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.GenericMethod<string>(\"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassIntArray.GenericMethod<string>("aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassIntArray.GenericMethod<int[]>(new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.GenericMethod<int[]>(new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassIntArray.GenericMethod<int[]>(new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassIntArray.GenericMethod<string[]>(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.GenericMethod<string[]>(new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassIntArray.GenericMethod<string[]>(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassStringArray.GenericMethod<int>(1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.GenericMethod<int>(1, typeof(int)) to be 1, but found '" + GenericClassStringArray.GenericMethod<int>(1, typeof(int)) + "'");
        }

        if (GenericClassStringArray.GenericMethod<string>("aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.GenericMethod<string>(\"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassStringArray.GenericMethod<string>("aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassStringArray.GenericMethod<int[]>(new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.GenericMethod<int[]>(new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassStringArray.GenericMethod<int[]>(new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassStringArray.GenericMethod<string[]>(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.GenericMethod<string[]>(new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassStringArray.GenericMethod<string[]>(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassInt.NonGenericMethodInt(1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassInt.NonGenericMethodInt(1, typeof(int)) to be 1, but found '" + GenericClassInt.NonGenericMethodInt(1, typeof(int)) + "'");
        }

        if (GenericClassInt.NonGenericMethodString("aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassInt.NonGenericMethodString(\"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassInt.NonGenericMethodString("aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassInt.NonGenericMethodIntArray(new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassInt.NonGenericMethodIntArray(new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassInt.NonGenericMethodIntArray(new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassInt.NonGenericMethodStringArray(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassInt.NonGenericMethodStringArray(new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassInt.NonGenericMethodStringArray(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassString.NonGenericMethodInt(1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassString.NonGenericMethodInt(1, typeof(int)) to be 1, but found '" + GenericClassString.NonGenericMethodInt(1, typeof(int)) + "'");
        }

        if (GenericClassString.NonGenericMethodString("aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassString.NonGenericMethodString(\"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassString.NonGenericMethodString("aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassString.NonGenericMethodIntArray(new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassString.NonGenericMethodIntArray(new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassString.NonGenericMethodIntArray(new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassString.NonGenericMethodStringArray(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassString.NonGenericMethodStringArray(new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassString.NonGenericMethodStringArray(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassIntArray.NonGenericMethodInt(1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.NonGenericMethodInt(1, typeof(int)) to be 1, but found '" + GenericClassIntArray.NonGenericMethodInt(1, typeof(int)) + "'");
        }

        if (GenericClassIntArray.NonGenericMethodString("aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.NonGenericMethodString(\"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassIntArray.NonGenericMethodString("aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassIntArray.NonGenericMethodIntArray(new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.NonGenericMethodIntArray(new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassIntArray.NonGenericMethodIntArray(new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassIntArray.NonGenericMethodStringArray(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.NonGenericMethodStringArray(new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassIntArray.NonGenericMethodStringArray(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassStringArray.NonGenericMethodInt(1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.NonGenericMethodInt(1, typeof(int)) to be 1, but found '" + GenericClassStringArray.NonGenericMethodInt(1, typeof(int)) + "'");
        }

        if (GenericClassStringArray.NonGenericMethodString("aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.NonGenericMethodString(\"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassStringArray.NonGenericMethodString("aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassStringArray.NonGenericMethodIntArray(new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.NonGenericMethodIntArray(new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassStringArray.NonGenericMethodIntArray(new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassStringArray.NonGenericMethodStringArray(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.NonGenericMethodStringArray(new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassStringArray.NonGenericMethodStringArray(new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassInt.GenericMethodUsesClassTypeParam<int>(27, 1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassInt.GenericMethodUsesClassTypeParam<int>(27, 1, typeof(int)) to be 1, but found '" + GenericClassInt.GenericMethodUsesClassTypeParam<int>(27, 1, typeof(int)) + "'");
        }

        if (GenericClassInt.GenericMethodUsesClassTypeParam<string>(27, "aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassInt.GenericMethodUsesClassTypeParam<string>(27, \"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassInt.GenericMethodUsesClassTypeParam<string>(27, "aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassInt.GenericMethodUsesClassTypeParam<int[]>(27, new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassInt.GenericMethodUsesClassTypeParam<int[]>(27, new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassInt.GenericMethodUsesClassTypeParam<int[]>(27, new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassInt.GenericMethodUsesClassTypeParam<string[]>(27, new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassInt.GenericMethodUsesClassTypeParam<string[]>(27, new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassInt.GenericMethodUsesClassTypeParam<string[]>(27, new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassString.GenericMethodUsesClassTypeParam<int>("", 1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassString.GenericMethodUsesClassTypeParam<int>(\"\", 1, typeof(int)) to be 1, but found '" + GenericClassString.GenericMethodUsesClassTypeParam<int>("", 1, typeof(int)) + "'");
        }

        if (GenericClassString.GenericMethodUsesClassTypeParam<string>("", "aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassString.GenericMethodUsesClassTypeParam<string>(\"\", \"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassString.GenericMethodUsesClassTypeParam<string>("", "aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassString.GenericMethodUsesClassTypeParam<int[]>("", new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassString.GenericMethodUsesClassTypeParam<int[]>(\"\", new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassString.GenericMethodUsesClassTypeParam<int[]>("", new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassString.GenericMethodUsesClassTypeParam<string[]>("", new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassString.GenericMethodUsesClassTypeParam<string[]>(\"\", new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassString.GenericMethodUsesClassTypeParam<string[]>("", new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassIntArray.GenericMethodUsesClassTypeParam<int>(new int[0], 1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.GenericMethodUsesClassTypeParam<int>(new int[0], 1, typeof(int)) to be 1, but found '" + GenericClassIntArray.GenericMethodUsesClassTypeParam<int>(new int[0], 1, typeof(int)) + "'");
        }

        if (GenericClassIntArray.GenericMethodUsesClassTypeParam<string>(new int[0], "aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.GenericMethodUsesClassTypeParam<string>(new int[0], \"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassIntArray.GenericMethodUsesClassTypeParam<string>(new int[0], "aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassIntArray.GenericMethodUsesClassTypeParam<int[]>(new int[0], new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.GenericMethodUsesClassTypeParam<int[]>(new int[0], new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassIntArray.GenericMethodUsesClassTypeParam<int[]>(new int[0], new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassIntArray.GenericMethodUsesClassTypeParam<string[]>(new int[0], new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.GenericMethodUsesClassTypeParam<string[]>(new int[0], new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassIntArray.GenericMethodUsesClassTypeParam<string[]>(new int[0], new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassStringArray.GenericMethodUsesClassTypeParam<int>(new string[0], 1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.GenericMethodUsesClassTypeParam<int>(new string[0], 1, typeof(int)) to be 1, but found '" + GenericClassStringArray.GenericMethodUsesClassTypeParam<int>(new string[0], 1, typeof(int)) + "'");
        }

        if (GenericClassStringArray.GenericMethodUsesClassTypeParam<string>(new string[0], "aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.GenericMethodUsesClassTypeParam<string>(new string[0], \"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassStringArray.GenericMethodUsesClassTypeParam<string>(new string[0], "aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassStringArray.GenericMethodUsesClassTypeParam<int[]>(new string[0], new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.GenericMethodUsesClassTypeParam<int[]>(new string[0], new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassStringArray.GenericMethodUsesClassTypeParam<int[]>(new string[0], new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassStringArray.GenericMethodUsesClassTypeParam<string[]>(new string[0], new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.GenericMethodUsesClassTypeParam<string[]>(new string[0], new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassStringArray.GenericMethodUsesClassTypeParam<string[]>(new string[0], new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassInt.NonGenericMethodIntUsesClassTypeParam(Int32.MaxValue, 1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassInt.NonGenericMethodIntUsesClassTypeParam(Int32.MaxValue, 1, typeof(int)) to be 1, but found '" + GenericClassInt.NonGenericMethodIntUsesClassTypeParam(Int32.MaxValue, 1, typeof(int)) + "'");
        }

        if (GenericClassInt.NonGenericMethodStringUsesClassTypeParam(Int32.MaxValue, "aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassInt.NonGenericMethodString(Int32.MaxValue, \"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassInt.NonGenericMethodStringUsesClassTypeParam(Int32.MaxValue, "aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassInt.NonGenericMethodIntArrayUsesClassTypeParam(Int32.MaxValue, new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassInt.NonGenericMethodIntArrayUsesClassTypeParam(Int32.MaxValue, new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassInt.NonGenericMethodIntArrayUsesClassTypeParam(Int32.MaxValue, new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassInt.NonGenericMethodStringArrayUsesClassTypeParam(Int32.MaxValue, new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassInt.NonGenericMethodStringArrayUsesClassTypeParam(Int32.MaxValue, new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassInt.NonGenericMethodStringArrayUsesClassTypeParam(Int32.MaxValue, new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassString.NonGenericMethodIntUsesClassTypeParam("wxyzabcdefgh", 1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassString.NonGenericMethodIntUsesClassTypeParam(\"wxyzabcdefgh\", 1, typeof(int)) to be 1, but found '" + GenericClassString.NonGenericMethodIntUsesClassTypeParam("wxyzabcdefgh", 1, typeof(int)) + "'");
        }

        if (GenericClassString.NonGenericMethodStringUsesClassTypeParam("wxyzabcdefgh", "aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassString.NonGenericMethodString(\"wxyzabcdefgh\", \"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassString.NonGenericMethodStringUsesClassTypeParam("wxyzabcdefgh", "aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassString.NonGenericMethodIntArrayUsesClassTypeParam("wxyzabcdefgh", new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassString.NonGenericMethodIntArrayUsesClassTypeParam(\"wxyzabcdefgh\", new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassString.NonGenericMethodIntArrayUsesClassTypeParam("wxyzabcdefgh", new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassString.NonGenericMethodStringArrayUsesClassTypeParam("wxyzabcdefgh", new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassString.NonGenericMethodStringArrayUsesClassTypeParam(\"wxyzabcdefgh\", new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassString.NonGenericMethodStringArrayUsesClassTypeParam("wxyzabcdefgh", new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassIntArray.NonGenericMethodIntUsesClassTypeParam(new int[] { Int32.MaxValue, Int32.MinValue }, 1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.NonGenericMethodIntUsesClassTypeParam(new int[] {Int32.MaxValue, Int32.MinValue}, 1, typeof(int)) to be 1, but found '" + GenericClassIntArray.NonGenericMethodIntUsesClassTypeParam(new int[] { Int32.MaxValue, Int32.MinValue }, 1, typeof(int)) + "'");
        }

        if (GenericClassIntArray.NonGenericMethodStringUsesClassTypeParam(new int[] { Int32.MaxValue, Int32.MinValue }, "aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.NonGenericMethodString(new int[] {Int32.MaxValue, Int32.MinValue}, \"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassIntArray.NonGenericMethodStringUsesClassTypeParam(new int[] { Int32.MaxValue, Int32.MinValue }, "aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassIntArray.NonGenericMethodIntArrayUsesClassTypeParam(new int[] { Int32.MaxValue, Int32.MinValue }, new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.NonGenericMethodIntArrayUsesClassTypeParam(new int[] {Int32.MaxValue, Int32.MinValue}, new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassIntArray.NonGenericMethodIntArrayUsesClassTypeParam(new int[] { Int32.MaxValue, Int32.MinValue }, new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassIntArray.NonGenericMethodStringArrayUsesClassTypeParam(new int[] { Int32.MaxValue, Int32.MinValue }, new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassIntArray.NonGenericMethodStringArrayUsesClassTypeParam(new int[] {Int32.MaxValue, Int32.MinValue}, new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassIntArray.NonGenericMethodStringArrayUsesClassTypeParam(new int[] { Int32.MaxValue, Int32.MinValue }, new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }

        if (GenericClassStringArray.NonGenericMethodIntUsesClassTypeParam(new string[1000], 1, typeof(int)) != 1)
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.NonGenericMethodIntUsesClassTypeParam(new string[1000], 1, typeof(int)) to be 1, but found '" + GenericClassStringArray.NonGenericMethodIntUsesClassTypeParam(new string[1000], 1, typeof(int)) + "'");
        }

        if (GenericClassStringArray.NonGenericMethodStringUsesClassTypeParam(new string[1000], "aaaa", typeof(string)) != "aaaa")
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.NonGenericMethodString(new string[1000], \"aaaa\", typeof(string)) to be \"aaaa\", but found '" + GenericClassStringArray.NonGenericMethodStringUsesClassTypeParam(new string[1000], "aaaa", typeof(string)) + "'");
        }

        if (Utils.CompareArray<int>(GenericClassStringArray.NonGenericMethodIntArrayUsesClassTypeParam(new string[1000], new int[] { 1, 2, 3 }, typeof(int[])), new int[] { 1, 2, 3 }))
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.NonGenericMethodIntArrayUsesClassTypeParam(new string[1000], new int[] {1,2,3} typeof(int[])) to be int[] {1,2,3}, but found '" + Utils.BuildArrayString<int>(GenericClassStringArray.NonGenericMethodIntArrayUsesClassTypeParam(new string[1000], new int[] { 1, 2, 3 }, typeof(int[]))) + "'");
        }

        if (Utils.CompareArray<string>(GenericClassStringArray.NonGenericMethodStringArrayUsesClassTypeParam(new string[1000], new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[])), new string[] { "abc", "def", "ghi", "jkl" }))
        {
            Utils.Fail("Expected returned value of GenericClassStringArray.NonGenericMethodStringArrayUsesClassTypeParam(new string[1000], new string[] {\"abc\",\"def\",\"ghi\",\"jkl\"} typeof(string[])) to be string[] {\"abc\",\"def\",\"ghi\",\"jkl\"}, but found '" + Utils.BuildArrayString<string>(GenericClassStringArray.NonGenericMethodStringArrayUsesClassTypeParam(new string[1000], new string[] { "abc", "def", "ghi", "jkl" }, typeof(string[]))) + "'");
        }
    }