//[TestCase(PickMethod.Reuse)] // IF THERE ARE NO CHARACTERS IN THE STORY, THIS TEST CASE WILL ALWAYS RETURN NULL. public void Pick_Character_ReturnsNotNull(PickMethod pickMethod) { // THIS TEST IS TO MAKE SURE THIS REUSABLE FUNCTION WORKS. SetUpForPickCharacter(); var character = Pick.Character(new List <Character>(), fileData, pickMethod, null); Assert.IsNotNull(character); }
public void Pick_Character_RunsWithoutError(PickMethod pickMethod) { // THIS TEST IS TO MAKE SURE THIS REUSABLE FUNCTION WORKS. SetUpForPickCharacter(); Action pickCharacter = () => Pick.Character(new List <Character>(), fileData, pickMethod, null); Assert.DoesNotThrow(() => pickCharacter()); }