I noticed that with in each test my bowl variable keeps increasing.
For example:
- At the end of the Strike test the variable is 2.
- Then it tests if a single bowl is not a strike then it excutes a tidy. At the end of this test bowl = 3.
- Then we test for a spare and at the end of this test the bowl variable is 5.
My question is: Is this expected behavior? In the video Ben has only one line in T02_Bowl8_ReturnsTidy. It seems in my project I need to add a actionMaster.Bowl(#); to make all other tests pass.
public void T02_Bowl8_ReturnsTidy()
{
Assert.AreEqual(tidy, actionMaster.Bowl(8));
}