Sha256: e4a43060ce4ed71631b409d0fbcd682884852222a887bb21f2f82c67d3024286

Contents?: true

Size: 1.63 KB

Versions: 115

Compression:

Stored size: 1.63 KB

Contents

using NUnit.Framework;

[TestFixture]
public class RomanNumeralsTest
{
    [TestCase(0, ExpectedResult = "")]
    [TestCase(1, ExpectedResult = "I", Ignore = "Remove to run test case")]
    [TestCase(2, ExpectedResult = "II", Ignore = "Remove to run test case")]
    [TestCase(3, ExpectedResult = "III", Ignore = "Remove to run test case")]
    [TestCase(4, ExpectedResult = "IV", Ignore = "Remove to run test case")]
    [TestCase(5, ExpectedResult = "V", Ignore = "Remove to run test case")]
    [TestCase(6, ExpectedResult = "VI", Ignore = "Remove to run test case")]
    [TestCase(9, ExpectedResult = "IX", Ignore = "Remove to run test case")]
    [TestCase(27, ExpectedResult = "XXVII", Ignore = "Remove to run test case")]
    [TestCase(48, ExpectedResult = "XLVIII", Ignore = "Remove to run test case")]
    [TestCase(59, ExpectedResult = "LIX", Ignore = "Remove to run test case")]
    [TestCase(93, ExpectedResult = "XCIII", Ignore = "Remove to run test case")]
    [TestCase(141, ExpectedResult = "CXLI", Ignore = "Remove to run test case")]
    [TestCase(163, ExpectedResult = "CLXIII", Ignore = "Remove to run test case")]
    [TestCase(402, ExpectedResult = "CDII", Ignore = "Remove to run test case")]
    [TestCase(575, ExpectedResult = "DLXXV", Ignore = "Remove to run test case")]
    [TestCase(911, ExpectedResult = "CMXI", Ignore = "Remove to run test case")]
    [TestCase(1024, ExpectedResult = "MXXIV", Ignore = "Remove to run test case")]
    [TestCase(3000, ExpectedResult = "MMM", Ignore = "Remove to run test case")]
    public string Convert_roman_to_arabic_numerals(int arabicNumeral)
    {
        return arabicNumeral.ToRoman();
    }
}

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
trackler-2.0.8.14 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.13 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.12 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.11 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.10 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.9 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.8 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.7 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.6 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.5 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.4 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.3 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.2 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.8.1 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.7.0 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.6.44 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.6.43 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.6.42 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.6.41 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs
trackler-2.0.6.40 tracks/csharp/exercises/roman-numerals/RomanNumeralsTest.cs