Exemplo n.º 1
0
 public void TestTranslation5()
 {
     string expected = "1010";
     HexNumber HN1 = new HexNumber("A");
     string correct = HN1.ToAnotherSystem(Bases.Binary).ToString();
     Assert.AreEqual(expected, correct, "Перевод из 16-ой в 2-ую корректен");
 }
Exemplo n.º 2
0
 public void TestTranslation4()
 {
     string expected = "171";
     HexNumber HN1 = new HexNumber("AB");
     string correct = HN1.ToAnotherSystem(Bases._Decimal).ToString();
     Assert.AreEqual(expected, correct, "Перевод из 16-ой в 10-ую корректен");
 }