public void TestToString () { Sequence seq = new Sequence( AlphabetType.DNA, "actgactg" ); Match m = new Match( voidPattern, null, 3, 2, +1, 1 ); m.SetSequence( seq ); Assert.AreEqual( "{3, 2, 1, 1, tg}", m.ToString() ); //change the expected result from usual 1.0 to 1 m.SubMatches.Add( new Match( voidPattern, null, 4, 2, -1, 0.5 ) ); m.SubMatches[ 0 ].SetSequence( seq ); m.SubMatches.Add( new Match( voidPattern, null, 5, 3, +1, 0.1 ) ); m.SubMatches[ 1 ].SetSequence( seq ); Assert.AreEqual( "{3, 2, 1, 1, tg, {4, 2, -1, 0.5, tc}, {5, 3, 1, 0.1, act}}", m.ToString() ); //see original code for actual result, i trim away the 1 decimal placing to pass the //test as there wont be much impact }