示例#1
0
        public void GetType_ThrowsTypeAccessException_WhenEnumTypeNotRegexTokenType()
        {
            var token = new EndOfStreamToken(0);

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

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