public void TestCompare_ExactMass() { Isotope iso = new Isotope("C") { ExactMass = 12.000000 }; Isotope iso2 = new Isotope("C") { ExactMass = 12.0 }; Assert.IsTrue(iso.Compare(iso2)); }
public void TestCompare_NaturalAbundance() { Isotope iso = new Isotope("C") { Abundance = 12.000000 }; Isotope iso2 = new Isotope("C") { Abundance = 12.0 }; Assert.IsTrue(iso.Compare(iso2)); }
public void TestCompare_MassNumber() { Isotope iso = new Isotope("C") { MassNumber = 12 }; Isotope iso2 = new Isotope("C") { MassNumber = (int)12.0 }; Assert.IsTrue(iso.Compare(iso2)); }