Exemple #1
0
        //[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);
        }
Exemple #2
0
        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());
        }