public void Calculate(int n10, int basePower, int factor, int remainder) { var sut = new Converter(); var t = sut.Calculate_base_power_factor_and_remainder(n10, basePower); Assert.AreEqual(factor, t.Item1, "wrong factor"); Assert.AreEqual(remainder, t.Item2, "wrong rem"); }
public void Calculate(int n10, int basePower, char[] digits) { var sut = new Converter(); Assert.AreEqual(digits, sut.Calculate_targetSystem_digits(n10, basePower).ToArray()); }
public void Assemble_several_digits() { var sut = new Converter(); Assert.AreEqual("xyz", sut.Assemble_converted_number_from_digits(new[] {'x', 'y', 'z'})); }
public void Map_digit(int factor, char digitOfTargetSystem) { var sut = new Converter(); Assert.AreEqual(digitOfTargetSystem, sut.Map_factor_to_targetSystem(factor)); }
public void Calc_base_power(int n10, int basePower) { var sut = new Converter(); Assert.AreEqual(basePower, sut.Determine_base_power(n10)); }