Skip to content

Commit

Permalink
Added: Duplicate test for non-cached.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Jul 8, 2022
1 parent 4ba2bbb commit 616bb59
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Reloaded.Memory.SigScan.Tests/MultithreadScannerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,19 @@ public void Cached_DoesNotRemoveDuplicates()
var results = scanner.FindPatternsCached(multiplePatterns);
Assert.Equal(results[0], results[2]);
}

[Fact]
public void NonCached_DoesNotRemoveDuplicates()
{
var scanner = new Scanner(_data);
var multiplePatterns = new List<string>()
{
"7A BB",
"9F AB",
"7A BB"
};

var results = scanner.FindPatterns(multiplePatterns);
Assert.Equal(results[0], results[2]);
}
}

0 comments on commit 616bb59

Please sign in to comment.