Пример #1
0
        public void TestMinValue()
        {
            var actualResult = Exercise01.Run(1);

            Assert.AreEqual("1", actualResult);
        }
Пример #2
0
        public void TestNegativeValue()
        {
            var actualResult = Exercise01.Run(-5);

            Assert.AreEqual(string.Empty, actualResult);
        }
Пример #3
0
        public void TestTwoDigitsValue()
        {
            var actualResult = Exercise01.Run(11);

            Assert.AreEqual("1 2 3 4 5 6 7 8 9 10 11", actualResult);
        }
Пример #4
0
        public void TestInvalidValue()
        {
            var actualResult = Exercise01.Run(0);

            Assert.AreEqual(string.Empty, actualResult);
        }
Пример #5
0
        public void Test_Exercise1(int input, string expected)
        {
            var actualResult = Exercise01.Run(input);

            actualResult.Should().BeEquivalentTo(expected);
        }