public void COTypeMismatchEqualityTest() { CO a = new CO() { Value = (Decimal)1.2, Code = "12345" }; Assert.IsFalse(a.Equals(5)); }
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)); }
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)); }
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)); }
public void COTypeMismatchEqualityTest() { CO a = new CO() { Value = (Decimal)1.2, Code = "12345" }; Assert.IsFalse(a.Equals(5)); }
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)); }
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)); }