public void EqualsEqualsTest() { var _SensorId1 = new SensorId(1); var _SensorId2 = new SensorId(1); Assert.IsTrue(_SensorId1.Equals(_SensorId2)); }
public void EqualsNotEqualsTest() { var _SensorId1 = new SensorId(1); var _SensorId2 = new SensorId(2); Assert.IsFalse(_SensorId1.Equals(_SensorId2)); }
protected internal override bool IsSameSourceInternal(BoldBaseEvent boldEvent) { if (string.IsNullOrEmpty(SensorId)) { throw new NullReferenceException("Not initialized, yet"); } if (!(boldEvent is GuardEvent)) { return(false); } return(SensorId.Equals(((GuardEvent)boldEvent).SensorId)); }