示例#1
0
        public void TestGetAtomColor()
        {
            CPKAtomColors colors = new CPKAtomColors();

            Assert.IsNotNull(colors);
            Assert.AreEqual(WPF::Media.Colors.White, colors.GetAtomColor(new Atom("H")));
            Assert.AreEqual(WPF::Media.Color.FromRgb(0xFF, 0xC0, 0xCB), colors.GetAtomColor(new Atom("He")));
        }
示例#2
0
        public void TestGetDefaultAtomColor()
        {
            CPKAtomColors colors = new CPKAtomColors();

            Assert.IsNotNull(colors);
            IAtom imaginary = new PseudoAtom("Ix");

            Assert.AreEqual(WPF::Media.Colors.Orange, colors.GetAtomColor(imaginary, WPF::Media.Colors.Orange));
        }