public void toIntToRomanSend_0() { const string expected = ""; var actual = RomanConverter.IntToRoman(0); Assert.AreEqual(expected, actual); }
public void toIntToRomanSend_123() { const string expected = "CXXIII"; var actual = RomanConverter.IntToRoman(123); Assert.AreEqual(expected, actual); }
public void toIntToRomanSend_MaxNumeber_3999() { const string expected = "MMMCMXCIX"; var actual = RomanConverter.IntToRoman(3999); Assert.AreEqual(expected, actual); }
public void toIntToRomanSend_2012_Expected_MMXII() { const string expected = "MMXII"; var actual = RomanConverter.IntToRoman(2012); Assert.AreEqual(expected, actual); }
public void convert_a_number_to_a_roman_numeral(int input, string expectedResult) { //Arrange var converter = new RomanConverter(); //Act var result = converter.IntToRoman(input); //Assert Assert.Equal(expectedResult, result); }
private void NumberToRomanConvertButton_Click(object sender, EventArgs e) { try { NumberToRomanOutputLabel.Text = RomanConverter.IntToRoman(Convert.ToInt32(NumberToRomanInputTextBox.Text)); } catch (Exception) { MessageBox.Show("Invalid input."); } }