public void GetType_ThrowsTypeAccessException_WhenEnumTypeNotRegexTokenType()
        {
            var token = new EndOfStreamToken(0);

            Assert.Throws <TypeAccessException>(() => token.GetType <TestColor>());
        }
        public void GetType_DoesNotThrow_WhenEnumTypeIsRegexTokenType()
        {
            var token = new EndOfStreamToken(0);

            Assert.DoesNotThrow(() => token.GetType <RegexTokenType>());
        }