Beispiel #1
0
 public void concat_other_way_around()
 {
     sut = new Section { Name = "s1" };
     var s2 = new Section { Name = "s2" };
     s2.concat(sut);
     Assert.AreEqual(2, sut.Position);
     Assert.AreEqual(1, s2.Position);
 }
Beispiel #2
0
 public void concat()
 {
     sut = new Section {Name = "s1"};
     var s2 = new Section {Name = "s2"};
     sut.concat(s2);
     Assert.AreEqual(1, sut.Position);
     Assert.AreEqual(2, s2.Position);
 }