public void SetUp() { Matcher = new EndsWithConstraint("hello"); GoodValues = new object[] { "hello", "I said hello" }; BadValues = new object[] { "goodbye", "What the hell?", "hello there", "say hello to fred", string.Empty, null }; Description = "String ending with \"hello\""; }
public void SetUp() { Matcher = new EndsWithConstraint("hello").IgnoreCase; GoodValues = new object[] { "HELLO", "I said Hello" }; BadValues = new object[] { "goodbye", "What the hell?", "hello there", "say hello to fred", string.Empty, null }; Description = "String ending with \"hello\", ignoring case"; }
protected override void SetUp() { Matcher = new EndsWithConstraint("hello").IgnoreCase; GoodValues = new object[] { "HELLO", "I said Hello" }; BadValues = new object[] { "goodbye", "What the hell?", "hello there", "say hello to fred", string.Empty, null }; Description = "\"hello\""; }
public void ShouldNotBePossibleEvaluateRuleWithEndsWithConstraintAndMissingProperty() { var constraint = new EndsWithConstraint("Name", "John"); var result = constraint.Evaluate(ObjectHelper.ToDictionary(new { })); Assert.False(result); }
public void SetUp() { theConstraint = new EndsWithConstraint("hello").IgnoreCase; expectedDescription = "String ending with \"hello\", ignoring case"; stringRepresentation = "<endswith \"hello\">"; }