diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..7a73a41
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,2 @@
+{
+}
\ No newline at end of file
diff --git a/RomanNumerals/Program.cs b/RomanNumerals/Program.cs
index 7a49be9..f2c9fd9 100644
--- a/RomanNumerals/Program.cs
+++ b/RomanNumerals/Program.cs
@@ -1,8 +1,4 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace RomanNumerals
{
@@ -10,12 +6,14 @@ class Program
{
static void Main(string[] args)
{
- // The code provided will print ‘Hello World’ to the console.
- // Press Ctrl+F5 (or go to Debug > Start Without Debugging) to run your app.
- Console.WriteLine("Hello World!");
- Console.ReadKey();
-
- // Go to http://aka.ms/dotnet-get-started-console to continue learning how to build a console app!
+ int result = 0;
+ bool success = Int32.TryParse(Console.ReadLine(), out result);
+ while (!success) {
+ success = Int32.TryParse(Console.ReadLine(), out result);
+ }
+ string romanNumeral = new RomanNumeralsConverter().Convert(result);
+ Console.WriteLine(romanNumeral);
+ Console.ReadLine();
}
}
}
diff --git a/RomanNumeralsTest/RomanNumeralsConverterTests.cs b/RomanNumeralsTest/RomanNumeralsConverterTests.cs
index 0a1b4c6..3bcb3c1 100644
--- a/RomanNumeralsTest/RomanNumeralsConverterTests.cs
+++ b/RomanNumeralsTest/RomanNumeralsConverterTests.cs
@@ -1,4 +1,5 @@
using System;
+using NFluent;
using NUnit.Framework;
using RomanNumerals;
@@ -23,7 +24,8 @@ public void TestOne(string expected, int actual)
{
RomanNumeralsConverter romanNumeralsConverter = new RomanNumeralsConverter();
string actualString = romanNumeralsConverter.Convert(actual);
- Assert.AreEqual(expected, actualString);
+ //Assert.AreEqual(expected, actualString);
+ Check.That(actualString).IsEqualTo(expected);
}
}
}
\ No newline at end of file
diff --git a/RomanNumeralsTest/RomanNumeralsTest.csproj b/RomanNumeralsTest/RomanNumeralsTest.csproj
index 6be837d..89f45d0 100644
--- a/RomanNumeralsTest/RomanNumeralsTest.csproj
+++ b/RomanNumeralsTest/RomanNumeralsTest.csproj
@@ -1,8 +1,8 @@
-
+
+
-
Debug
@@ -42,6 +42,15 @@
4
+
+ ..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll
+
+
+ ..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll
+
+
+ ..\packages\NFluent.2.7.0\lib\net45\NFluent.dll
+
..\packages\NUnit.3.12.0\lib\net45\nunit.framework.dll
@@ -67,10 +76,10 @@
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
-
+
+
+
-
+
\ No newline at end of file
diff --git a/RomanNumeralsTest/packages.config b/RomanNumeralsTest/packages.config
index 857fa9a..4c88fe6 100644
--- a/RomanNumeralsTest/packages.config
+++ b/RomanNumeralsTest/packages.config
@@ -1,7 +1,8 @@
-
-
+
+
+
-
+
\ No newline at end of file