コード例 #1
0
        public void GetHintsTest()
        {
            var expect = new List <ResultPeg> {
                ResultPeg.White, ResultPeg.White
            };

            var get = new Mastermind(new List <CodePeg> {
                CodePeg.Black, CodePeg.Blue, CodePeg.Green, CodePeg.Yellow
            });
            var result = get.GetHints(new List <CodePeg> {
                CodePeg.Green, CodePeg.Black, CodePeg.White, CodePeg.White
            });

            CollectionAssert.AreEqual(expect, result);
        }