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)); }
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))); }
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)); }