public void AddLocation() { var likeLoader = new LikeDataLoader(Context, "like.csv.short"); const int start = 2112; const int end = 4224; likeLoader.CurrentRow = new[] { "stuffz", "ch13", start.ToString(), end.ToString(), "priest of syrinx" }; likeLoader.CurrentGene = _insertedGeneWithOutSymbol; likeLoader.AddLocation(); Assert.Equal( 1, likeLoader .CurrentGene .GeneLocations.Single(gl => gl.HgVersion == 19) .GeneCoordinates .Count(gc => gc.Start == start && gc.End == end) ); Assert.Equal( likeLoader.CurrentRow[LikeDataLoader.ColLocus], likeLoader .CurrentGene .GeneLocations.Single(gl => gl.HgVersion == 19) .Locus ); }