Beispiel #1
0
        public void EqualsObjectTest()
        {
            Charge target   = new Charge(10F);
            object obj      = 11F;
            bool   expected = false;
            bool   actual   = target.Equals(obj);

            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        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));
 }
Beispiel #4
0
 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.");
 }
Beispiel #5
0
 public void EqualsObjectTest()
 {
     Charge target = new Charge(10F);
     object obj = 11F;
     bool expected = false;
     bool actual = target.Equals(obj);
     Assert.AreEqual(expected, actual);
 }
 public bool Equals(FragmentSpectralMatch other)
 {
     return(Fragment.Equals(other.Fragment) && Charge.Equals(other.Charge));
 }