public void ConvertingFromDecimalToAnotherSymbol_positive(int decimalNumber, int valueOfBaseOfNewSystem, string expected) { var converting = new ConvertingFromDecimalToAnotherSystem(decimalNumber, valueOfBaseOfNewSystem); string actual = converting.ConvertDecimalNumberToAnotherSystem(); Assert.AreEqual(expected, actual); }
public void ConvertingFromDecimalToOtherNumeralSystem_OverflowException(int decimalNumber, int valueOfBaseOfNewSystem) { var converting = new ConvertingFromDecimalToAnotherSystem(decimalNumber, valueOfBaseOfNewSystem); Assert.Throws <OverflowException>(() => converting.ConvertDecimalNumberToAnotherSystem()); }