コード例 #1
0
ファイル: BodyFacts.cs プロジェクト: DM-TOR/nhin-d
 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());
 }
コード例 #2
0
ファイル: BodyFacts.cs プロジェクト: DM-TOR/nhin-d
 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());
 }