ShadowKnightMK4 / OdinSearch

Search thru local computer files and feed matching output to a class that consumes it.
MIT License
1 stars 0 forks source link

New Possible Unavoidable Issue: Breakdown the Unit Tests into modelar components to fully provide coverage #40

Open ShadowKnightMK4 opened 3 months ago

ShadowKnightMK4 commented 3 months ago

Original plan each class covered bits.

Current plan: Each unit test plan coverts a particular part of that bit.

[TestInit] is used to startup and common to each testmethod

[TestCleanup] Finishes.

Will need to write tests with known based scenarios to cover issues such as.

Are we testing for matching files? hardcode a scenario with FileSystemCache class such as a set of files and folders for the test. Each scenario's starting root is C:\Scratchpad\Classname.

We test bits and pieces for coverage.

The standard example would be the OdinSearch_SoleMatch_Tests test.

It creates two files with the name empty file "test1.dat" in each of them and tests if Solematch being return matches a single result but solematch being false matches both results.