Ejemplo n.º 1
0
        public void GetType_DoesNotThrow_WhenEnumTypeIsRegexTokenType()
        {
            var token = new CharacterToken(null, 0, 0);

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

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