예제 #1
0
        public void Given_Number_When_GenerateCalled_ShouldReturnExpectedRomanNumber(int number, string expectedRomanNumber)
        {
            var    romanNumeral    = new RomanNumeral();
            string generatedNumber = romanNumeral.GenerateRomanNumber(number);

            Assert.That(generatedNumber, Is.EqualTo(expectedRomanNumber));
        }
예제 #2
0
 public void Given_1_When_GenerateCalled_ShouldReturnI()
 {
     var romanNumeral = new RomanNumeral();
     string generatedNumber = romanNumeral.GenerateRomanNumber(1);
     const string expectedRomanNumber = "I";
     Assert.That(generatedNumber, Is.EqualTo(expectedRomanNumber));
 }
예제 #3
0
        public void Given_1_When_GenerateCalled_ShouldReturnI()
        {
            var          romanNumeral        = new RomanNumeral();
            string       generatedNumber     = romanNumeral.GenerateRomanNumber(1);
            const string expectedRomanNumber = "I";

            Assert.That(generatedNumber, Is.EqualTo(expectedRomanNumber));
        }
예제 #4
0
 public void Given_Number_When_GenerateCalled_ShouldReturnExpectedRomanNumber(int number, string expectedRomanNumber)
 {
     var romanNumeral = new RomanNumeral();
     string generatedNumber = romanNumeral.GenerateRomanNumber(number);
     Assert.That(generatedNumber, Is.EqualTo(expectedRomanNumber));
 }