protected override void SetUp()
 {
     Matcher = new StartsWithConstraint("hello");
     GoodValues = new object[] { "hello", "hello there" };
     BadValues = new object[] { "goodbye", "What the hell?", "I said hello", "say hello to fred", string.Empty, null };
     Description = "\"hello\"";
 }
Пример #2
0
        public void RespectsCulture()
        {
            var constraint = new StartsWithConstraint("r\u00E9sum\u00E9");

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

            Assert.That(result.IsSuccess, Is.True);
        }
Пример #3
0
 public void SetUp()
 {
     TheConstraint        = new StartsWithConstraint("hello").IgnoreCase;
     ExpectedDescription  = "String starting with \"hello\", ignoring case";
     StringRepresentation = "<startswith \"hello\">";
 }
Пример #4
0
 public void SetUp()
 {
     Matcher = new StartsWithConstraint("hello").IgnoreCase;
     GoodValues = new object[] { "Hello", "HELLO there" };
     BadValues = new object[] { "goodbye", "What the hell?", "I said hello", "say Hello to fred", string.Empty, null };
     Description = "String starting with \"hello\", ignoring case";
 }
Пример #5
0
 public void SetUp()
 {
     theConstraint        = new StartsWithConstraint("hello");
     expectedDescription  = "String starting with \"hello\"";
     stringRepresentation = "<startswith \"hello\">";
 }
Пример #6
0
 public void SetUp()
 {
     theConstraint = new StartsWithConstraint("hello");
     expectedDescription = "String starting with \"hello\"";
     stringRepresentation = "<startswith \"hello\">";
 }