Пример #1
0
        public void TestGetDefaultAtomColor()
        {
            RasmolColors colors = new RasmolColors();

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

            Assert.AreEqual(WPF::Media.Colors.Orange, colors.GetAtomColor(imaginary, WPF::Media.Colors.Orange));
        }
Пример #2
0
        public void TestGetAtomColor()
        {
            RasmolColors colors = new RasmolColors();

            Assert.IsNotNull(colors);
            IAtom sulfur = new Atom("S");

            Assert.AreEqual(WPF::Media.Color.FromRgb(255, 200, 50), colors.GetAtomColor(sulfur));

            IAtom helium = new Atom("He");

            Assert.AreEqual(WPF::Media.Color.FromRgb(255, 192, 203), colors.GetAtomColor(helium));
        }