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"))); }
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)); }