Пример #1
0
 public void testSetField3()
 {
     myStaticStruct   = new MyStruct(25);
     myStaticStruct.x = 42;
     AssertEquals(myStaticStruct.x, 42);
 }
Пример #2
0
 public void testCtor3()
 {
     myStaticStruct = new MyStruct(25);
     AssertEquals(myStaticStruct.x, 25);
 }
Пример #3
0
 public void testSetField2()
 {
     myInstanceStruct   = new MyStruct(25);
     myInstanceStruct.x = 42;
     AssertEquals(myInstanceStruct.x, 42);
 }
Пример #4
0
 public void testCtor2()
 {
     myInstanceStruct = new MyStruct(25);
     AssertEquals(myInstanceStruct.x, 25);
 }
Пример #5
0
        public void testCtor1()
        {
            MyStruct x = new MyStruct(25);

            AssertEquals(x.x, 25);
        }
Пример #6
0
 public void testDefaultCtor3()
 {
     myStaticStruct = new MyStruct();
     AssertEquals(myStaticStruct.x, 0);
 }
Пример #7
0
 public void testDefaultCtor2()
 {
     myInstanceStruct = new MyStruct();
     AssertEquals(myInstanceStruct.x, 0);
 }
Пример #8
0
        public void testDefaultCtor1()
        {
            MyStruct x = new MyStruct();

            AssertEquals(x.x, 0);
        }