Ejemplo n.º 1
0
        public void CanAddStartPosition()
        {
            // Arrange
            var start = Board.Start;

            // Act
            using (var session = SessionFactory.OpenSession())
            {
                var book = new BookService(session);
                book.Add(start);
            }

            // Assert
            using (var session = SessionFactory.OpenSession())
            {
                var book = new BookService(session);
                Assert.That(book.Contains(start));
                Assert.That(book.Contains(start.Play(new Move("D3")).MinimalReflection()));
                Assert.That(book.Contains(start.Play(new Move("C4")).MinimalReflection()));
                Assert.That(book.Contains(start.Play(new Move("F5")).MinimalReflection()));
                Assert.That(book.Contains(start.Play(new Move("E6")).MinimalReflection()));
            }
        }