public void TestCalcStartEnd () { Match m = new Match( null ); Match sub1 = new Match( voidPattern, null, 2, 2, +1, 0.0 ); Match sub2 = new Match( voidPattern, null, 3, 2, +1, 0.0 ); m.SubMatches.Add( sub1 ); m.SubMatches.Add( sub2 ); m.CalcStartEnd(); Assert.AreEqual( 2, m.SubMatches.Count ); Assert.AreEqual( 2, m.Start ); Assert.AreEqual( 3, m.Length ); Assert.AreEqual( 4, m.End ); }