soen / Conjunction

A Sitecore utility designed to create configurable and personalizable queries for either the Lucene or Solr search engine using Sitecore's ContentSearch API
https://soen.github.io/Conjunction
MIT License
12 stars 1 forks source link

Add unit tests #1

Closed soen closed 7 years ago

soen commented 7 years ago

Currently, the core API does not contain any unit tests. This needs to be added.

In terms of unit testing the ContentSearch API specific parts, this can be helpful: https://gist.github.com/aquasonic/ac99844e1771ab3cce80

With respect to keeping the unit tests DRY: http://megakemp.com/2011/12/15/keep-your-unit-tests-dry-with-autofixture-customizations/

Note: Create a unit test for each line in MemberData needs to support serialization, otherwise it won't work: https://github.com/xunit/xunit/issues/429