Nunit provides a Retry attribute to run the failed test method with a number of times.
Then another thought of fetching failed test and retrying is through parsing the output XML.
The test report file .xml contains the complete report of the Test execution.
We can write c# the code to parse the XML to find the failed test method with the class name.