public void GetType_DoesNotThrow_WhenEnumTypeIsRegexTokenType()
        {
            var token = new CharacterToken(null, 0, 0);

            Assert.DoesNotThrow(() => token.GetType <RegexTokenType>());
        }
Beispiel #2
0
        public void GetType_ThrowsTypeAccessException_WhenEnumTypeNotRegexTokenType()
        {
            var token = new CharacterToken(null, 0, 0);

            Assert.Throws <TypeAccessException>(() => token.GetType <TestColor>());
        }