public void ConvertToNewNumeralSystem_Value_ExpectCorrectConvert(int accepted, int exception, string result) { NumberConverter numberConverter = new NumberConverter(accepted, exception); StringBuilder actual = numberConverter.ConvertToNewNumeralSystem(); Assert.AreEqual(result, actual); }
public void ConvertToNewNumeralSystem_NotValidNumbers_ExpectExceptions(int acceptedNumber, int ecceptedFoundetion) { NumberConverter numberConverter = new NumberConverter(acceptedNumber, ecceptedFoundetion); Assert.Throws <Exception> ( () => numberConverter.ConvertToNewNumeralSystem() ); }