public bool Compare(SequentialTestClass other)
 {
   return MyByte == other.MyByte
          && MyDecimal == other.MyDecimal
          && MyString == other.MyString
          && MyByteArray.All(e => other.MyByteArray.Any(oe => oe == e))
          && MyDecimalArray.All(e => other.MyDecimalArray.Any(oe => oe == e));
 }
Beispiel #2
0
 public bool Compare(SequentialTestClass other)
 {
     return(MyByte == other.MyByte &&
            MyDecimal == other.MyDecimal &&
            MyString == other.MyString &&
            MyByteArray.All(e => other.MyByteArray.Any(oe => oe == e)) &&
            MyDecimalArray.All(e => other.MyDecimalArray.Any(oe => oe == e)));
 }
Beispiel #3
0
        public void SeqClassTest()
        {
            var test = new SequentialTestClass();

            test.SetDefaultValues();
            int allocatedBytes;
            var result = test.ToPointer(out allocatedBytes).Read <SequentialTestClass>((uint)allocatedBytes);

            Assert.IsTrue(test.Compare(result));
        }
 public void SeqClassTest()
 {
   var test = new SequentialTestClass();
   test.SetDefaultValues();
   int allocatedBytes;
   var result = test.ToPointer(out allocatedBytes).Read<SequentialTestClass>((uint)allocatedBytes);
   Assert.IsTrue(test.Compare(result));
 }