public void ShouldMatchEmpty() { var parameters = HttpUtility.ParseQueryString("?id=&id2= "); Assert.That(ParamIs.Empty().IsMatch(parameters.GetValues("id")), Is.True); Assert.That(ParamIs.Empty().IsMatch(parameters.GetValues("id2")), Is.True); }
public void ShouldMatchNotEmpty() { var parameters = HttpUtility.ParseQueryString("?id=ted"); Assert.That(ParamIs.Empty().IsMatch(parameters.GetValues("id")), Is.False); }