Example #1
0
		public void Cinco_Entonces_Retorna_V()
		{
			//ARRANGE
			Num2Rom sut = new Num2Rom();
			string expected = "V";

			//ACT
			string actual = sut.Convert(5);

			//ASSERT
			Assert.AreEqual(expected, actual);
		}
Example #2
0
		public void Siete_Entonces_Retorna_VII()
		{
			//ARRANGE
			Num2Rom sut = new Num2Rom();
			string expected = "VII";

			//ACT
			string actual = sut.Convert(7);

			//ASSERT
			Assert.AreEqual(expected, actual);
		}
Example #3
0
		public void Mil_Ciento_Setenta_y_ocho_Entonces_Retorna_MCLXXVIII()
		{
			//ARRANGE
			Num2Rom sut = new Num2Rom();
			string expected = "MCLXXVIII";

			//ACT
			string actual = sut.Convert(1178);

			//ASSERT
			Assert.AreEqual(expected, actual);
		}
Example #4
0
		public void Trescientos_venticuatro_Entonces_Retorna_CCCXXIV()
		{
			//ARRANGE
			Num2Rom sut = new Num2Rom();
			string expected = "CCCXXIV";

			//ACT
			string actual = sut.Convert(324);

			//ASSERT
			Assert.AreEqual(expected, actual);
		}
Example #5
0
		public void Veinte_Entonces_Retorna_XX()
		{
			//ARRANGE
			Num2Rom sut = new Num2Rom();
			string expected = "XX";

			//ACT
			string actual = sut.Convert(20);

			//ASSERT
			Assert.AreEqual(expected, actual);
		}
Example #6
0
		public void Diecinueve_Entonces_Retorna_XIV()
		{
			//ARRANGE
			Num2Rom sut = new Num2Rom();
			string expected = "XIX";

			//ACT
			string actual = sut.Convert(19);

			//ASSERT
			Assert.AreEqual(expected, actual);
		}
Example #7
0
		public void Dieciocho_Entonces_Retorna_XVIII()
		{
			//ARRANGE
			Num2Rom sut = new Num2Rom();
			string expected = "XVIII";

			//ACT
			string actual = sut.Convert(18);

			//ASSERT
			Assert.AreEqual(expected, actual);
		}