Exemple #1
0
        public void GetValueOptions_A1InEmptyBoard_ReturnsAllValues()
        {
            // arrange
            var v = new Board();
            var expected = Values.One | Values.Two | Values.Three
                | Values.Four | Values.Five | Values.Six
                | Values.Seven | Values.Eight | Values.Nine;

            // act
            var result = v.GetValueOptions(Columns.A, Rows.One)
                .Aggregate((v1, v2) => v1 | v2)
                ;

            // assert
            Assert.AreEqual(expected, result);
        }