public void TestContainLocations() { MatchExon e1 = new MatchExon(); e1.Add(new Location(1, 10)); e1.Add(new Location(30, 40)); var e2 = new[] { new Location(1, 10), new Location(30, 40) }; var e3 = new[] { new Location(1, 11), new Location(30, 40) }; Assert.IsTrue(e1.EqualLocations(e2)); Assert.IsFalse(e1.EqualLocations(e3)); }
public void TestEqualLocations() { MatchExon e1 = new MatchExon(); e1.Add(new Location(1, 10)); e1.Add(new Location(30, 40)); MatchExon e2 = new MatchExon(); e2.Add(new Location(1, 10)); e2.Add(new Location(30, 40)); MatchExon e3 = new MatchExon(); e3.Add(new Location(1, 11)); e3.Add(new Location(30, 40)); Assert.IsTrue(e1.EqualLocations(e2)); Assert.IsFalse(e1.EqualLocations(e3)); }