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\"";
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public void SetUp()
 {
     TheConstraint        = new StartsWithConstraint("hello").IgnoreCase;
     ExpectedDescription  = "String starting with \"hello\", ignoring case";
     StringRepresentation = "<startswith \"hello\">";
 }
Exemplo n.º 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";
 }
Exemplo n.º 5
0
 public void SetUp()
 {
     theConstraint        = new StartsWithConstraint("hello");
     expectedDescription  = "String starting with \"hello\"";
     stringRepresentation = "<startswith \"hello\">";
 }
Exemplo n.º 6
0
 public void SetUp()
 {
     theConstraint = new StartsWithConstraint("hello");
     expectedDescription = "String starting with \"hello\"";
     stringRepresentation = "<startswith \"hello\">";
 }