public void ConvertTuplesToTrafficNodes_WithTupleData_ReturnsCorrectTrafficNodeListObject() { var newTrafficNodesList = new List <Tuple <double, double, string> > { new Tuple <double, double, string>(52.2318011, 0.15169109999999364, "EastPointLtd"), new Tuple <double, double, string>(52.229508018982365, 0.15089035034179688, "MathWorks"), new Tuple <double, double, string>(52.22996801547011, 0.1548171043395996, "Golf Driving Range"), new Tuple <double, double, string>(52.23554016575568, 0.15400171279907227, "St John's Innovation Centre"), new Tuple <double, double, string>(52.23232049441707, 0.1439380645751953, "Cambridge Consultants"), }; // act var trafficNodes = _nodeFinder.ConvertTuplesToTrafficNodess(newTrafficNodesList); // assert Assert.True(trafficNodes[0].GPSLocation.Latitude.Equals(newTrafficNodesList[0].Item1)); Assert.True(trafficNodes[0].GPSLocation.Longitude.Equals(newTrafficNodesList[0].Item2)); Assert.True(trafficNodes[1].GPSLocation.Latitude.Equals(newTrafficNodesList[1].Item1)); Assert.True(trafficNodes[1].GPSLocation.Longitude.Equals(newTrafficNodesList[1].Item2)); Assert.True(trafficNodes[2].GPSLocation.Latitude.Equals(newTrafficNodesList[2].Item1)); Assert.True(trafficNodes[2].GPSLocation.Longitude.Equals(newTrafficNodesList[2].Item2)); Assert.True(trafficNodes[3].GPSLocation.Latitude.Equals(newTrafficNodesList[3].Item1)); Assert.True(trafficNodes[3].GPSLocation.Longitude.Equals(newTrafficNodesList[3].Item2)); Assert.True(trafficNodes[4].GPSLocation.Latitude.Equals(newTrafficNodesList[4].Item1)); Assert.True(trafficNodes[4].GPSLocation.Longitude.Equals(newTrafficNodesList[4].Item2)); }