public void TestInitialize() { _fixture = new Fixture(); _bookProvider = new Mock <IBookProvider>(MockBehavior.Strict); _target = new BookCreator(_bookProvider.Object); }
public AIPlayer(Board board, AISettings settings) { this.settings = settings; this.board = board; settings.requestAbortSearch += TimeOutThreadedSearch; search = new Search(board, settings); search.onSearchComplete += OnSearchComplete; search.searchDiagnostics = new Search.SearchDiagnostics(); book = BookCreator.LoadBookFromFile(settings.book); }