Ejemplo n.º 1
0
        public void ReallyLongNvalueTest()
        {
            string  testString = "a";
            long    n          = 1000000000000;
            Program p          = new Program();
            long    actual     = Program.CountRepeatedString(testString, n);
            long    expected   = 1000000000000;

            Assert.Equal(expected, actual);
        }
Ejemplo n.º 2
0
        public void Test1()
        {
            string  testString = "aba";
            long    n          = 10;
            Program p          = new Program();
            long    actual     = RepeatedString.Program.CountRepeatedString(testString, n);
            long    expected   = 7;

            Assert.Equal(expected, actual);
        }