コード例 #1
0
        public void bin2oct5()
        {
            Convertors.Convertor a = new Convertors.BinConvertor("0001110011");
            string expected        = "163";
            string actual          = a.ToOctal().ToString();

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
 public void bin2oct8()
 {
     Convertors.Convertor a      = new Convertors.BinConvertor(new string(""));
     Numbers.Number       number = null;
     Assert.Catch <ArgumentNullException>(() => number = a.ToOctal());
 }