public bool True() { if (should.Negate) { assertProvider.IsFalse(should.Target); } else { assertProvider.IsTrue(should.Target); } return(should.Target); }
public bool?True() { if (!should.Target.HasValue) { assertProvider.Fail("Expected TRUE but was NULL."); } else { if (should.Negate) { assertProvider.IsFalse(should.Target.Value); } else { assertProvider.IsTrue(should.Target.Value); } } return(should.Target); }
public string NullOrEmpty() { var targetNullOrEmpty = string.IsNullOrEmpty(should.Target); if (should.Negate) { assertProvider.IsFalse(targetNullOrEmpty); } else { assertProvider.IsTrue(targetNullOrEmpty); } return(should.Target); }