예제 #1
0
        public void HydrogensAppearBeforeSulfur()
        {
            var mock_atom = new Mock <IAtom>(); var atom = mock_atom.Object;

            mock_atom.Setup(n => n.AtomicNumber).Returns(16);
            Assert.AreEqual(Left, HydrogenPositionTools.UsingDefaultPlacement(atom));
        }
예제 #2
0
        public void HydrogensAppearAfterCarbon()
        {
            var mock_atom = new Mock <IAtom>(); var atom = mock_atom.Object;

            mock_atom.Setup(n => n.AtomicNumber).Returns(6);
            Assert.AreEqual(Right, HydrogenPositionTools.UsingDefaultPlacement(atom));
        }