Exemplo n.º 1
0
        public void CorrectnessOfCalculation(string acceptedNumber, string acceptedBase, string expectedResult)
        {
            TransferFromDecimalNumberSystemToAnother tr = new TransferFromDecimalNumberSystemToAnother();
            string actual = tr.ToNumberSystem(acceptedNumber, acceptedBase);

            Assert.AreEqual(expectedResult, actual);
        }
Exemplo n.º 2
0
        public void ArgumentChecking(string acceptedNumber, string acceptedBase)
        {
            TransferFromDecimalNumberSystemToAnother tr = new TransferFromDecimalNumberSystemToAnother();

            Assert.Throws <Exception>(() => tr.ToNumberSystem(acceptedNumber, acceptedBase));
        }