From 616bb5961efe4f70a3724d9053f53900937fa8ea Mon Sep 17 00:00:00 2001 From: Sewer 56 Date: Fri, 8 Jul 2022 16:34:00 +0100 Subject: [PATCH] Added: Duplicate test for non-cached. --- .../MultithreadScannerTests.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Reloaded.Memory.SigScan.Tests/MultithreadScannerTests.cs b/Reloaded.Memory.SigScan.Tests/MultithreadScannerTests.cs index 048df6d..c40fcf0 100644 --- a/Reloaded.Memory.SigScan.Tests/MultithreadScannerTests.cs +++ b/Reloaded.Memory.SigScan.Tests/MultithreadScannerTests.cs @@ -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() + { + "7A BB", + "9F AB", + "7A BB" + }; + + var results = scanner.FindPatterns(multiplePatterns); + Assert.Equal(results[0], results[2]); + } } \ No newline at end of file