public void bin2oct5() { Convertors.Convertor a = new Convertors.BinConvertor("0001110011"); string expected = "163"; string actual = a.ToOctal().ToString(); Assert.AreEqual(expected, actual); }
public void bin2oct8() { Convertors.Convertor a = new Convertors.BinConvertor(new string("")); Numbers.Number number = null; Assert.Catch <ArgumentNullException>(() => number = a.ToOctal()); }