예제 #1
0
파일: PairsTests.cs 프로젝트: rmunn/cog
        public void MakePairsProducesAllCombinations(
			[Values("one", "one\r\ntwo", "one\ntwo\n", "1\r\n2\r\n3\r\n", "1\n2\n3\n4")]
			string input,
			[Values("",    "one two\n",  "one two\n",  "1 2\n1 3\n2 3\n", "1 2\n1 3\n1 4\n2 3\n2 4\n3 4\n")]
			string expectedOutput)
        {
            var pairs = new PairsVerb();
            CheckVerbOutput(input, expectedOutput, pairs, stripNewlines:false);
        }
예제 #2
0
파일: PairsTests.cs 프로젝트: megahirt/cog
        public void MakePairsProducesAllCombinations(
            [Values("one", "one\r\ntwo", "one\ntwo\n", "1\r\n2\r\n3\r\n", "1\n2\n3\n4")]
            string input,
            [Values("", "one two\n", "one two\n", "1 2\n1 3\n2 3\n", "1 2\n1 3\n1 4\n2 3\n2 4\n3 4\n")]
            string expectedOutput)
        {
            var pairs = new PairsVerb();

            CheckVerbOutput(input, expectedOutput, pairs, stripNewlines: false);
        }