public void Returns_the_value_from_the_BoolValueRetriever()
 {
     Func<string, bool> func = value => value == "this value" || value == "another value";
     
     var retriever = new NullableBoolValueRetriever(func);
     retriever.GetValue("this value").Should().Be(true);
     retriever.GetValue("another value").Should().Be(true);
     retriever.GetValue("failing value").Should().Be(false);
     retriever.GetValue("another thing that returns false").Should().Be(false);
 }
 public void Returns_null_when_passed_empty_string()
 {
     var retriever = new NullableBoolValueRetriever(value => true);
     retriever.GetValue(string.Empty).Should().Be(null);
 }
 public void Returns_null_when_passed_null()
 {
     var retriever = new NullableBoolValueRetriever(value => true);
     retriever.GetValue(null).ShouldBeNull();
 }