Fix off by one error resulting in duplicate assemblies in recent assembly list

This commit is contained in:
Dustin Campbell
2016-07-06 14:02:36 -07:00
parent 83bd1be9bf
commit 5e966ff461
+1 -1
View File
@@ -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))
{