public void EqualsObjectTest() { Charge target = new Charge(10F); object obj = 11F; bool expected = false; bool actual = target.Equals(obj); Assert.AreEqual(expected, actual); }
public void EqualsDoubleTest() { Charge target = new Charge(10F); double obj = 9F; bool expected = false; bool actual; actual = target.Equals(obj); Assert.AreEqual(expected, actual); //Assert.Inconclusive("Verify the correctness of this test method."); }
public bool Equals(ChargeReference other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Id.Equals(other.Id) && Charge.Equals(other.Charge)); }
public bool Equals(FragmentSpectralMatch other) { return(Fragment.Equals(other.Fragment) && Charge.Equals(other.Charge)); }