public void TestGetAtomColor() { PartialAtomicChargeColors colors = new PartialAtomicChargeColors(); Assert.IsNotNull(colors); IAtom hydrogen = new Atom("H"); hydrogen.AtomicNumber = 1; Assert.AreEqual(WPF::Media.Colors.White, colors.GetAtomColor(hydrogen)); IAtom helium = new Atom("He"); helium.AtomicNumber = 2; Assert.AreEqual(WPF::Media.Colors.White, colors.GetAtomColor(helium)); }
public void TestGetDefaultAtomColor() { PartialAtomicChargeColors colors = new PartialAtomicChargeColors(); Assert.IsNotNull(colors); IAtom imaginary = new PseudoAtom("Ix"); Assert.AreEqual(WPF::Media.Colors.Orange, colors.GetAtomColor(imaginary, WPF::Media.Colors.Orange)); }