Exemple #1
0
        public void EqualsEqualsTest()
        {
            var _SensorId1 = new SensorId(1);
            var _SensorId2 = new SensorId(1);

            Assert.IsTrue(_SensorId1.Equals(_SensorId2));
        }
Exemple #2
0
        public void EqualsNotEqualsTest()
        {
            var _SensorId1 = new SensorId(1);
            var _SensorId2 = new SensorId(2);

            Assert.IsFalse(_SensorId1.Equals(_SensorId2));
        }
Exemple #3
0
 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));
 }
Exemple #4
0
 public void EqualsNotEqualsTest()
 {
     var _SensorId1 = new SensorId(1);
     var _SensorId2 = new SensorId(2);
     Assert.IsFalse(_SensorId1.Equals(_SensorId2));
 }
Exemple #5
0
 public void EqualsEqualsTest()
 {
     var _SensorId1 = new SensorId(1);
     var _SensorId2 = new SensorId(1);
     Assert.IsTrue(_SensorId1.Equals(_SensorId2));
 }