Example #1
0
        public void Defers_Scoring_To_Scorer()
        {
            const int     mockedScore = 555;
            WrappedBitmap wb          = new WrappedBitmap(new Bitmap(1, 1));

            _scorer.Score(null).ReturnsForAnyArgs(mockedScore);

            var score = _recogniser.Score(wb);

            _scorer.Received(1).Score(wb);
            Assert.AreEqual(mockedScore, score);
        }