private void ById() { String id = tq.ConsumeCssIdentifier(); Validate.NotEmpty(id); evals.Add(new Evaluator.ID(id)); }
private void ById() { string id = _tq.ConsumeCssIdentifier(); if (string.IsNullOrEmpty(id)) { throw new Exception("id is empty."); } _evals.Add(new Evaluator.Id(id)); }
private void ById() { string id = tq.ConsumeCssIdentifier(); if (id.Length == 0) { throw Failure.EmptyString("id"); } evals.Add(new Evaluator.Id(id)); }