public void GetPossibleTransitionsFromState2and5returns4Transitions() { GameState fromState = new GameState(2, 5); int bucket1Max = 3; int bucket2Max = 5; IList <StateTransition> actual = StateTransition.GetPossibleTransitions(fromState, bucket1Max, bucket2Max); //dump 1, dump 2, fill 1, tranfer 2 to 1 Assert.AreEqual(actual.Count, 4); }
public void GetPossibleTransitionsFromState0and0returns2Transitions() { GameState fromState = new GameState(0, 0); int bucket1Max = 3; int bucket2Max = 5; IList <StateTransition> actual = StateTransition.GetPossibleTransitions(fromState, bucket1Max, bucket2Max); //fill 1, fill 2 Assert.AreEqual(actual.Count, 2); }