Пример #1
0
        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);
        }
Пример #2
0
        public void ShouldMatchNotEmpty()
        {
            var parameters = HttpUtility.ParseQueryString("?id=ted");

            Assert.That(ParamIs.Empty().IsMatch(parameters.GetValues("id")), Is.False);
        }