public void EqualsSymmetric() { Assert.IsTrue(_duplicateDataPacket.Equals(_dataPacket), "Equal data packets"); Assert.IsTrue(_dataPacket.Equals(_duplicateDataPacket), "Equal data packets"); Assert.IsFalse(_dataPacket.Equals(_dataPacketDifferentFirst), "Different data packets"); Assert.IsFalse(_dataPacketDifferentFirst.Equals(_dataPacket), "Different data packets"); }
public void EqualsDuplicateDataPacket() { Assert.IsTrue(_dataPacket.Equals(_duplicateDataPacket)); }
public void TestGetDataPacketRandom() { IDataPacket dataPacket = _dataReader.GetDataPacket(30, 20); Assert.IsTrue(dataPacket.Equals(TestFramework.CreateDataPacket(InputFile, 40, 20)), "GetDataPacket() for random, unfragmented packet"); }