public void GoodSynthesis() { Cation sodiumIon = new Cation("Sodium", +1); Anion chlorideIon = new Anion("Chloride", -1); Assert.AreEqual(true, Synthesis.IsFormedNeutralMolecule(sodiumIon, chlorideIon)); }
public static bool IsFormedNeutralMolecule(Cation cation, Anion anion) { if (anion.Charge + cation.Charge == 0) return true; return false; }
public void BadCation() { var cation = new Cation("Sodium", +1); }