示例#1
0
        public void TestGetElementString()
        {
            IsotopeFactory elfac   = BODRIsotopeFactory.Instance;
            var            element = elfac.GetElement("Br");

            Assert.AreEqual(35, element.AtomicNumber);
        }
示例#2
0
        public void TestGetElementInt()
        {
            IsotopeFactory elfac   = BODRIsotopeFactory.Instance;
            var            element = elfac.GetElement(6);

            Assert.AreEqual("C", element.Symbol);
        }
示例#3
0
        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
     }
 }