public void ConvertToAnotherNumeralSystem_ArgumentIsMoreMaxValidValue_ExpectedException() { BigInteger number = 19; int radix = 21; ConverterToAnotherNumeralSystem numb = new ConverterToAnotherNumeralSystem(number, radix); Assert.Throws <FormatException>(() => numb.ConvertToAnotherNumeralSystem()); }
public void ConvertToAnotherNumeralSystem_ArgumentIsNegative_ExpectedException() { int number = -31; int radix = 16; ConverterToAnotherNumeralSystem numb = new ConverterToAnotherNumeralSystem(number, radix); Assert.Throws <ArgumentException>(() => numb.ConvertToAnotherNumeralSystem()); }
public void ConvertToAnotherNumeralSystem_ArgumentIsMaxValidValue() { BigInteger number = 19; int radix = 20; string expected = "J"; ConverterToAnotherNumeralSystem numb = new ConverterToAnotherNumeralSystem(number, radix); Assert.AreEqual(expected, numb.ConvertToAnotherNumeralSystem()); }