public void Solve(string input, string expected)
        {
            var target = new Solver();
            var result = target.Solve(input);

            Assert.Equal(expected, result);
        }
        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);
        }
Exemple #3
0
        public void SortDates(string input, string expected)
        {
            var t = new Solver();
            var result = t.SortDates(input);

            Assert.Equal(expected, result);
        }
        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);
        }