public void Set_number_and_send_a_digit() { var sut = new NumberAssembler(); sut.Number = 23; Assert.AreEqual(9, sut.Add_digit("9")); }
public void Next_digit_is_added_to_number() { var sut = new NumberAssembler(); sut.Add_digit("2"); Assert.AreEqual(23, sut.Add_digit("3")); }
public void Read_number() { var sut = new NumberAssembler(); sut.Add_digit("2"); Assert.AreEqual(2, sut.Number); }
public void First_digit_is_returned_as_number() { var sut = new NumberAssembler(); Assert.AreEqual(2, sut.Add_digit("2")); }