Example #1
0
        public void NoCustomDelimOptionShouldReturnBaseInputString()
        {
            var result = ChallengeCalculator.GetOrCreateInputStringFromArgs(@"1a2a3", string.Empty);

            Assert.That(result, Is.EqualTo("1a2a3"));
        }
Example #2
0
        public void InputStringWithExistingCustomDelimAndDelimOptionShouldAddNewDelimCleanly()
        {
            var result = ChallengeCalculator.GetOrCreateInputStringFromArgs(@"//[a]\n1a2a3", "bbb");

            Assert.That(result, Is.EqualTo(@"//[bbb][a]\n1a2a3"));
        }
Example #3
0
        public void CustomDelimOptionShouldAddDelimSectionToInputString()
        {
            var result = ChallengeCalculator.GetOrCreateInputStringFromArgs(@"1a2a3", "a");

            Assert.That(result, Is.EqualTo(@"//[a]\n1a2a3"));
        }