Example #1
0
        public void GoodSynthesis()
        {
            Cation sodiumIon = new Cation("Sodium", +1);
            Anion chlorideIon = new Anion("Chloride", -1);

            Assert.AreEqual(true, Synthesis.IsFormedNeutralMolecule(sodiumIon, chlorideIon));
        }
Example #2
0
        public static bool IsFormedNeutralMolecule(Cation cation, Anion anion)
        {
            if (anion.Charge + cation.Charge == 0)
                return true;

            return false;
        }
Example #3
0
 public void BadCation()
 {
     var cation = new Cation("Sodium", +1);
 }