Beispiel #1
0
            public static void testMethod()
            {
                ValueTestClass7_Struct MS = new ValueTestClass7_Struct();
                ValueTestClass7_Struct MS2;

                MS.MyInt = 3;
                MS2      = MS;
                MS.MyInt = 4;

                Assert.Equal(MS2.MyInt, 3);
            }
            public static bool testMethod()
            {
                ValueTestClass7_Struct MS = new ValueTestClass7_Struct();
                ValueTestClass7_Struct MS2;

                MS.MyInt = 3;
                MS2 = MS;
                MS.MyInt = 4;

                if (MS2.MyInt == 3)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
Beispiel #3
0
            public static bool testMethod()
            {
                ValueTestClass7_Struct MS = new ValueTestClass7_Struct();
                ValueTestClass7_Struct MS2;

                MS.MyInt = 3;
                MS2      = MS;
                MS.MyInt = 4;

                if (MS2.MyInt == 3)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }