コード例 #1
0
        public void CountOfAtoms_3()
        {
            var solution = new _0726_NumberOfAtoms();
            var result   = solution.CountOfAtoms("K4(ON(SO3)2)2");

            Assert.AreEqual("K4N2O14S4", result);
        }
コード例 #2
0
        public void CountOfAtoms_1()
        {
            var solution = new _0726_NumberOfAtoms();
            var result   = solution.CountOfAtoms("H2O");

            Assert.AreEqual("H2O", result);
        }
コード例 #3
0
        public void CountOfAtoms_2()
        {
            var solution = new _0726_NumberOfAtoms();
            var result   = solution.CountOfAtoms("Mg(OH)2");

            Assert.AreEqual("H2MgO2", result);
        }