Beispiel #1
0
        public void CheckForTheCorrectConversionWhenTheEnteredNumberIsZero()
        {
            NumberConverter converter = new NumberConverter(0, 16);

            Assert.AreEqual("0", converter.ConvertNumberToNewRadix());
        }
Beispiel #2
0
        public void CheckForTheConversionNumberWhenRadixIsMaxAllowableValue()
        {
            NumberConverter converter = new NumberConverter(10, 20);

            Assert.AreEqual("A", converter.ConvertNumberToNewRadix());
        }
Beispiel #3
0
        public void CheckForTheCorrectnessOfTheConvertedNumberWithLetters()
        {
            NumberConverter converter = new NumberConverter(86478, 16);

            Assert.AreEqual("151CE", converter.ConvertNumberToNewRadix());
        }