Example #1
0
        public void UserInputWithInvalidString_ShouldThrowException(string input, string[] invalidInput)
        {
            var parseException = Assert.Throws <ParseException>(() => InputColourParser.ParseFromString(input));

            Assert.Equal(invalidInput.ToList(), parseException.InvalidColourInput);
        }
Example #2
0
        public void UserInputString_ShouldConvertToEnumArray(string input, Colour[] expected)
        {
            var result = InputColourParser.ParseFromString(input);

            Assert.Equal(expected, result);
        }