protected override EvaluationResult EvaluateImpl(SyntaxNode node)
{
var statement = (ThrowStatementSyntax)node;
var exceptionCreation = statement.Expression as ObjectCreationExpressionSyntax;
if (exceptionCreation != null)
{
var exceptionType = exceptionCreation.Type as IdentifierNameSyntax;
if (exceptionType != null && exceptionType.Identifier.ValueText.EndsWith("NotImplementedException"))
{
return new EvaluationResult
{
Snippet = node.ToFullString()
};
}
}
return null;
}
}