public void TestGetElementString() { IsotopeFactory elfac = BODRIsotopeFactory.Instance; var element = elfac.GetElement("Br"); Assert.AreEqual(35, element.AtomicNumber); }
public void TestGetElementInt() { IsotopeFactory elfac = BODRIsotopeFactory.Instance; var element = elfac.GetElement(6); Assert.AreEqual("C", element.Symbol); }
public void TestGetElementSymbolInt() { IsotopeFactory elfac = BODRIsotopeFactory.Instance; string symbol = elfac.GetElementSymbol(8); Assert.AreEqual("O", symbol); }
public static void Main() { { #region 1 IsotopeFactory ifac = XMLIsotopeFactory.Instance; #endregion } { #region example IsotopeFactory factory = XMLIsotopeFactory.Instance; IIsotope major = factory.GetMajorIsotope("H"); #endregion } }