public CodeMakerTests()
        {
            randoom = A.Fake <Randoom>();

            A.CallTo(() => randoom.GetSequence(A <int> ._, A <int> ._, A <int> ._)).Returns(new List <int> {
                4
            });

            maker = new CodeMaker(randoom);
        }
示例#2
0
        static void Main(string[] args)
        {
            Console.WriteLine("MasterMind of Doom");

            var rng       = new Randoom();
            var codeMaker = new CodeMaker(rng);

            var game = new Game(codeMaker);

            game.Play();
        }
示例#3
0
 public Game(CodeMaker codeMaker)
 {
     this.codeMaker = codeMaker;
 }