예제 #1
0
        public void ConvertGroupTest_InvalidGroupNumber_ThrowArgumentException(int number)
        {
            var bc = new ConverterWrapper();

            var exception = Assert.Throws <ArgumentException>(() => bc.ConvertGroupWrapper(number));

            Assert.AreEqual("A group should be positive and it cannot be more than 999", exception.Message);
        }
예제 #2
0
        public void ConvertGroupTest(int number, string expected)
        {
            var bc = new ConverterWrapper();

            var actual = bc.ConvertGroupWrapper(number);

            TestContext.Out.WriteLine($"{number} : {actual}");

            Assert.AreEqual(expected, actual);
        }