Ejemplo n.º 1
0
        public void TestFilepath()
        {
            StarMapReader smr  = new StarMapReader();
            List <Star>   list = smr.fileToList(path);

            Assert.IsTrue(list.Count == 17, "17 total stars in list read from path");
        }
Ejemplo n.º 2
0
    /* ARGS: none
     *  RETURN: the coordinates of every member of the constellation
     */
    public List <StarCoords> CoordsInConstellation()
    {
        List <StarCoords> coords = new List <StarCoords>();
        StarMapReader     smr    = new StarMapReader();
        List <Star>       list   = smr.fileToList(@"../../../../StarMap/Maps/stars.txt");

        foreach (Endpoint point in _lines)
        {
            coords.Add(Star.getCoordsByName(point.getStart(), list));
        }

        return(coords);
    }