Exemplo n.º 1
0
        public void With_Returns_RuleBook_With_Same_WinnerTuples()
        {
            var underTest = new RuleBook(new Game(GameConfiguration.Default));

            var newGame = Substitute.For <IGame>();

            ((RuleBook)underTest.With(newGame)).WinnerTuples.Should().BeSameAs(underTest.WinnerTuples);
        }
Exemplo n.º 2
0
        public void With_Returns_RuleBook_With_Passed_Game()
        {
            var underTest = new RuleBook(new Game(GameConfiguration.Default));

            var newGame = Substitute.For <IGame>();

            ((RuleBook)underTest.With(newGame)).Game.Should().BeSameAs(newGame);
        }