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";
 }
Example #2
0
        public void RespectsCulture()
        {
            var constraint = new EndsWithConstraint("r\u00E9sum\u00E9").IgnoreCase;

            var result = constraint.ApplyTo("re\u0301sume\u0301");

            Assert.That(result.IsSuccess, Is.True);
        }
Example #3
0
 public void SetUp()
 {
     theConstraint        = new EndsWithConstraint("hello").IgnoreCase;
     expectedDescription  = "String ending with \"hello\", ignoring case";
     stringRepresentation = "<endswith \"hello\">";
 }
 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\"";
 }
Example #6
0
 public void SetUp()
 {
     TheConstraint        = new EndsWithConstraint("hello");
     ExpectedDescription  = "String ending with \"hello\"";
     StringRepresentation = "<endswith \"hello\">";
 }