Ejemplo n.º 1
0
        public void Solve(string input, string expected)
        {
            var target = new Solver();
            var result = target.Solve(input);

            Assert.Equal(expected, result);
        }
Ejemplo n.º 2
0
        public void Merge(string s, string t, int offset, string expected)
        {
            var target = new Solver();
            var result = target.Merge(s, t, offset);

            Assert.Equal(expected, result);
        }
Ejemplo n.º 3
0
        public void SortDates(string input, string expected)
        {
            var t = new Solver();
            var result = t.SortDates(input);

            Assert.Equal(expected, result);
        }
Ejemplo n.º 4
0
        public void FindOverlap(string s, string t, int expectedScore, int expectedOffset)
        {
            int offset;
            var target = new Solver();
            var result = target.FindOverlap(s, t, out offset);

            Assert.Equal(expectedScore, result);
            Assert.Equal(expectedOffset, offset);
        }