public void CompareToTrue()
        {
            Comparer<string> comparer = new BoolComparer(true);

            Assert.IsTrue(comparer.Compare(true.ToString()), "true.ToString()");
            Assert.IsTrue(comparer.Compare("true"), "true");
            Assert.IsTrue(comparer.Compare("True"), "True");
            Assert.IsFalse(comparer.Compare("false"), "false");
            Assert.IsFalse(comparer.Compare("some other string"), "some other string");
        }
 public void ToStringShouldDescribeTheCondition()
 {
     var comparer = new BoolComparer(false);
     Assert.AreEqual("equals 'False' ignoring case", comparer.ToString());
 }