Esempio n. 1
0
 public void TwoDPagesWithUnmatchedKeys_ArentEquivilant()
 {
     DPage first = new DPage { key = 1 };
     DPage second = new DPage { key = 2 };
     bool equivilant = first.Equivilant(second);
     Assert.IsFalse(equivilant);
 }
Esempio n. 2
0
 public void DPageAndBPageWithMatchingKeys_AreNotEquivilant()
 {
     DPage first = new DPage { key = 1 };
     BPage second = new BPage { Page_ID = 2 };
     bool equivilant = first.Equivilant(second);
     Assert.IsFalse(equivilant);
 }
Esempio n. 3
0
 public void TwoDPagesWithMatchingKeys_AreEquivilant()
 {
     int key = -1;
     DPage first = new DPage { key = key };
     DPage second = new DPage { key = key };
     bool equivilant = first.Equivilant(second);
     Assert.IsTrue(equivilant);
 }
Esempio n. 4
0
 public void DPage_IsEquivilantToItself()
 {
     DPage page = new DPage { key = -1};
     bool equivilant = page.Equivilant(page);
     Assert.IsTrue(equivilant);
 }