Fix off by one error resulting in duplicate assemblies in recent assembly list
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Xunit.Runner.Wpf.Persistence
|
||||
|
||||
public void AddRecentAssembly(string filePath)
|
||||
{
|
||||
for (int i = recentAssemblies.Count - 1; i > 0; i--)
|
||||
for (int i = recentAssemblies.Count - 1; i >= 0; i--)
|
||||
{
|
||||
if (StringComparer.OrdinalIgnoreCase.Equals(recentAssemblies[i], filePath))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user