Example #1
0
        public void CanWordBeSpelled_GivenBear_ShouldReturnTrue()
        {
            //arrange (test data)
            string incomingWord = "BEAR";

            var firstBlockCreator = new BlockCreator();
            var firstPile         = firstBlockCreator.CreateBlocks();

            var testInstance = new PuzzleSolver();

            //action (do some work)
            bool isItSpellable = testInstance.CanWordBeSpelled(incomingWord, firstPile);

            //assert - check that the result of your action is that what you expected
            Assert.True(isItSpellable);
        }