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"; }
public void RespectsCulture() { var constraint = new EndsWithConstraint("r\u00E9sum\u00E9").IgnoreCase; var result = constraint.ApplyTo("re\u0301sume\u0301"); Assert.That(result.IsSuccess, Is.True); }
public void SetUp() { theConstraint = new EndsWithConstraint("hello").IgnoreCase; expectedDescription = "String ending with \"hello\", ignoring case"; stringRepresentation = "<endswith \"hello\">"; }
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 SetUp() { TheConstraint = new EndsWithConstraint("hello"); ExpectedDescription = "String ending with \"hello\""; StringRepresentation = "<endswith \"hello\">"; }