Beispiel #1
0
        public void Test_XI()
        {
            var test = new ConvertToArabic();

            Assert.AreEqual(11, test.Convert("XI"));
        }
Beispiel #2
0
        public void Test_IX()
        {
            var test = new ConvertToArabic();

            Assert.AreEqual(9, test.Convert("IX"));
        }
Beispiel #3
0
        public void Test_Exception()
        {
            var test = new ConvertToArabic();

            Assert.Throws <Exception>(() => test.Convert("IW"));
        }
Beispiel #4
0
        public void Test_V()
        {
            var test = new ConvertToArabic();

            Assert.AreEqual(5, test.Convert("V"));
        }
Beispiel #5
0
        public void Test_VIII()
        {
            var test = new ConvertToArabic();

            Assert.AreEqual(8, test.Convert("VIII"));
        }
Beispiel #6
0
        public void Test_XLIV()
        {
            var test = new ConvertToArabic();

            Assert.AreEqual(44, test.Convert("XLIV"));
        }
Beispiel #7
0
        public void Test_C()
        {
            var test = new ConvertToArabic();

            Assert.AreEqual(100, test.Convert("C"));
        }
Beispiel #8
0
 public void Test_XI()
 {
     var test = new ConvertToArabic();
     Assert.AreEqual(11,test.Convert("XI") );
 }
Beispiel #9
0
        public void Test_XX()
        {
            var test = new ConvertToArabic();

            Assert.AreEqual(20, test.Convert("XX"));
        }
Beispiel #10
0
 public void Test_V()
 {
     var test = new ConvertToArabic();
     Assert.AreEqual(5,test.Convert("V") );
 }
Beispiel #11
0
 public void Test_VIII()
 {
     var test = new ConvertToArabic();
     Assert.AreEqual(8,test.Convert("VIII") );
 }
Beispiel #12
0
 public void Test_IX()
 {
     var test = new ConvertToArabic();
     Assert.AreEqual(9,test.Convert("IX") );
 }
Beispiel #13
0
 public void Test_Exception()
 {
     var test = new ConvertToArabic();
     Assert.Throws<Exception>( () => test.Convert("IW"));
 }
Beispiel #14
0
 public void Test_XX()
 {
     var test = new ConvertToArabic();
     Assert.AreEqual(20,test.Convert("XX") );
 }
Beispiel #15
0
 public void Test_XLIV()
 {
     var test = new ConvertToArabic();
     Assert.AreEqual(44,test.Convert("XLIV") );
 }
Beispiel #16
0
 public void Test_C()
 {
     var test = new ConvertToArabic();
     Assert.AreEqual(100,test.Convert("C") );
 }