public void TestEquals () { Sequence seq = new Sequence( AlphabetType.DNA, "aCtg" ); Assert.AreEqual( false, seq.Equals( null ) ); Assert.AreEqual( false, seq.Equals( new Sequence( AlphabetType.DNA, "act" ) ) ); Assert.AreEqual( false, seq.Equals( new Sequence( AlphabetType.DNA, "actga" ) ) ); Assert.AreEqual( true, seq.Equals( new Sequence( AlphabetType.DNA, "actg" ) ) ); Assert.AreEqual( true, seq.Equals( new Sequence( AlphabetType.DNA, "anxg" ) ) ); Assert.AreEqual( true, seq.Equals( "aCtG" ) ); Assert.AreEqual( true, seq.Equals( "ncTX" ) ); Assert.AreEqual( false, seq.Equals( "act" ) ); Assert.AreEqual( false, seq.Equals( "actgc" ) ); Assert.AreEqual( false, seq.Equals( "actw" ) ); }