public void TestDeLinkMakeFamilyID()
 {
     AdminTools.Link_DeLinkChild DeLink = new AdminTools.Link_DeLinkChild(0, "000001");
     Assert.AreEqual(DeLink.MakeFamilyID("123450"), "12345");
     Assert.AreNotEqual(DeLink.MakeFamilyID("123450"), "123450");
     Assert.AreNotEqual(DeLink.MakeFamilyID("123450"), "23450");
     Assert.AreNotEqual(DeLink.MakeFamilyID("123450"), "");
 }
 public void TestDeLinkCheckIfSame()
 {
     AdminTools.Link_DeLinkChild DeLink = new AdminTools.Link_DeLinkChild(0, "000001");
     Assert.IsTrue(DeLink.CheckIfSame("", ""));
     Assert.IsTrue(DeLink.CheckIfSame("123450", "123450"));
     Assert.IsFalse(DeLink.CheckIfSame("123450", "123451"));
     Assert.IsFalse(DeLink.CheckIfSame("123450", "0123450"));
 }
 public void TestDeLinkChildCheckIfNull()
 {
     AdminTools.Link_DeLinkChild DeLink = new AdminTools.Link_DeLinkChild(0, "000001");
     Assert.IsTrue(DeLink.CheckIfNull());
     DeLink.txt_GuardianID.Text = "123450";
     Assert.IsTrue(DeLink.CheckIfNull());
     DeLink.txt_GuardianID2.Text = "123451";
     Assert.IsFalse(DeLink.CheckIfNull());
 }
 public void TestDeLinkCheckIfNumbers()
 {
     AdminTools.Link_DeLinkChild DeLink = new AdminTools.Link_DeLinkChild(0, "000001");
     Assert.IsTrue(DeLink.CheckIfNumbers("123450", "123451"));
     Assert.IsTrue(DeLink.CheckIfNumbers("1", "0"));
     Assert.IsFalse(DeLink.CheckIfNumbers("123450Junk", "123451"));
     Assert.IsFalse(DeLink.CheckIfNumbers("123450", "123451Junk"));
     Assert.IsFalse(DeLink.CheckIfNumbers("Junk", "Junk"));
     Assert.IsFalse(DeLink.CheckIfNumbers("", ""));
 }