public void TestIsotope_String_int() { IIsotope i = new Isotope("C", 12); Assert.AreEqual(12, i.MassNumber.Value); Assert.AreEqual("C", i.Symbol); }
public void TestIsotope_IElement() { var element = ChemicalElement.C; IIsotope i = new Isotope(element); Assert.AreEqual("C", i.Symbol); }
public void TestIsotope_int_String_double_double() { IIsotope i = new Isotope("C", 12.001, 80.0); Assert.AreEqual("C", i.Symbol); Assert.AreEqual(6, i.AtomicNumber); Assert.AreEqual(12.001, i.ExactMass.Value, 0.001); Assert.AreEqual(80.0, i.Abundance.Value, 0.001); }
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)); }
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_ExactMass() { Isotope iso = new Isotope("C") { ExactMass = 12.000000 }; Isotope iso2 = new Isotope("C") { ExactMass = 12.0 }; Assert.IsTrue(iso.Compare(iso2)); }
public void TestIsotope_String() { IIsotope i = new Isotope("C"); Assert.AreEqual("C", i.Symbol); }