Пример #1
0
 public void TestInitialize()
 {
     _a = new MplInteger(0, 0, 0);
     _b = new MplInteger(2, 0, 0);
     _c = new MplInteger(-2, 0, 0);
     _d = new MplInteger(0, 0, 0);
 }
Пример #2
0
 public void DivisionTest()
 {
     Assert.AreEqual(0, (_a / _b).Val);
     Assert.AreEqual(0, (_a / _c).Val);
     Assert.AreEqual(-1, (_b / _c).Val);
     Assert.AreEqual(-1, (_c / _b).Val);
     Assert.AreEqual(1, (_b / _b).Val);
     MplInteger _ = _b / _a;
 }