예제 #1
0
        public void COTypeMismatchEqualityTest()
        {
            CO a = new CO()
            {
                Value = (Decimal)1.2,
                Code  = "12345"
            };

            Assert.IsFalse(a.Equals(5));
        }
예제 #2
0
        public void COContentDifferentEqualityTest()
        {
            CO a = new CO()
            {
                Value = (Decimal)1.2,
                Code  = "12345"
            },
               b = new CO()
            {
                Value = (Decimal)1.3,
                Code  = "12345"
            };

            Assert.IsFalse(a.Equals(b));
        }
예제 #3
0
        public void COContentSameEqualityTest()
        {
            CO a = new CO()
            {
                Value = (Decimal)1.2,
                Code  = "12345"
            },
               b = new CO()
            {
                Value = (Decimal)1.2,
                Code  = "12345"
            };

            Assert.IsTrue(a.Equals(b));
            Assert.IsTrue(b.Equals(a));
        }
예제 #4
0
 protected bool Equals(ValuesAir other)
 {
     return(C6H6.Equals(other.C6H6) && PM10.Equals(other.PM10) && SO2.Equals(other.SO2) && NO2.Equals(other.NO2) && CO.Equals(other.CO) && PM25.Equals(other.PM25) && O3.Equals(other.O3));
 }
예제 #5
0
파일: COTest.cs 프로젝트: oneminot/everest
 public void COTypeMismatchEqualityTest()
 {
     CO a = new CO()
     {
         Value = (Decimal)1.2,
         Code = "12345"
     };
     Assert.IsFalse(a.Equals(5));
 }
예제 #6
0
파일: COTest.cs 프로젝트: oneminot/everest
 public void COContentDifferentEqualityTest()
 {
     CO a = new CO()
     {
         Value = (Decimal)1.2,
         Code = "12345"
     },
     b = new CO()
     {
         Value = (Decimal)1.3,
         Code = "12345"
     };
     Assert.IsFalse(a.Equals(b));
 }
예제 #7
0
파일: COTest.cs 프로젝트: oneminot/everest
 public void COContentSameEqualityTest()
 {
     CO a = new CO()
     {
         Value = (Decimal)1.2,
         Code = "12345"
     },
     b = new CO()
     {
         Value = (Decimal)1.2,
         Code = "12345"
     };
     Assert.IsTrue(a.Equals(b));
     Assert.IsTrue(b.Equals(a));
 }