public void EqualsShould_Work_For_Equal_Protocol_Lines() { ProtocolLine pl1 = new ProtocolLine("Set;tagPath1;tagValue1;192"); ProtocolLine pl2 = new ProtocolLine("Set;tagPath1;tagValue1;192"); Assert.IsTrue(pl1.Equals(pl2)); }
public void EqualsShould_Work_For_UnEqual_Protocol_Lines() { ProtocolLine pl1 = new ProtocolLine("Set;tagPath1;tagValue1;192"); ProtocolLine pl2 = new ProtocolLine("Dummy;tagPath1;tagValue1;192"); Assert.IsFalse(pl1.Equals(pl2)); pl2 = new ProtocolLine("Set;tagPath2;tagValue1;192"); Assert.IsFalse(pl1.Equals(pl2)); pl2 = new ProtocolLine("Set;tagPath1;tagValue2;192"); Assert.IsFalse(pl1.Equals(pl2)); pl2 = new ProtocolLine("Set;tagPath1;tagValue1;0"); Assert.IsFalse(pl1.Equals(pl2)); pl2 = new ProtocolLine("Dummy;tagPath1;tagValue1;0"); Assert.IsFalse(pl1.Equals(pl2)); }