public void GetType_DoesNotThrow_WhenEnumTypeIsRegexTokenType() { var token = new CharacterToken(null, 0, 0); Assert.DoesNotThrow(() => token.GetType <RegexTokenType>()); }
public void GetType_ThrowsTypeAccessException_WhenEnumTypeNotRegexTokenType() { var token = new CharacterToken(null, 0, 0); Assert.Throws <TypeAccessException>(() => token.GetType <TestColor>()); }