Exemplo n.º 1
0
 public void BodyFromStringShouldHaveMatchingText()
 {
     string bText = "Hello, world";
     Body b = new Body(bText);
     Assert.Equal(bText, b.Text);
     Assert.Equal(bText, b.SourceText.ToString());
     Assert.Equal(bText, b.ToString());
 }
Exemplo n.º 2
0
 public void BodyFromStringSegmentShouldHaveMatchingText()
 {
     string s = "abcHello, worlddef";
     string bText = "Hello, world";
     StringSegment ss = new StringSegment(s, 3, 14);
     Body b = new Body(ss);
     Assert.Equal(bText, b.Text);
     Assert.Equal(bText, b.SourceText.ToString());
     Assert.Equal(bText, b.ToString());
 }