Beispiel #1
0
 public static void Compare(LargeStruct a, LargeStruct b)
 {
     A(a.m_val1 == b.m_val1);
     A(a.m_val2 == b.m_val2);
     A(a.m_val3 == b.m_val3);
     A(a.m_val4 == b.m_val4);
 }
 public void Setup()
 {
     _serializer = new Serializer();
     _stream = new MemoryStream();
     _testStruct = LargeStruct.Create();
     _testPerson = TypicalPersonData.MakeRandom();
 }
Beispiel #3
0
 public static void Compare(LargeStruct a, LargeStruct b)
 {
     A(a.m_val1 == b.m_val1);
     A(a.m_val2 == b.m_val2);
     A(a.m_val3 == b.m_val3);
     A(a.m_val4 == b.m_val4);
 }
 public void Cleanup()
 {
     _stream.Dispose();
     _stream = null;
     _serializer = null;
     _testStruct = default(LargeStruct);
     _testPerson = null;
 }