public void GetDistanceDifferentSensorDataTest()
 {
     double weigth = 5.0;
     List<WiFiNetworkSet> connectedlist = GetConnectedList();
     List<WiFiNetwork> connected2 = new List<WiFiNetwork>();
     connected2.Add(new WiFiNetwork("b", 30));
     var conn2list = new List<WiFiNetworkSet>();
     conn2list.Add(new WiFiNetworkSet(connected2));
     WiFiConnectedSensor target = new WiFiConnectedSensor(connectedlist, weigth,null);
     WiFiConnectedSensor sensor = new WiFiConnectedSensor(conn2list,weigth,null);
     double expected = 0.0;
     var actual = target.GetDistance(sensor);
     Assert.AreEqual(expected,actual);
 }
 public void GetDistanceTest()
 {
     double weigth = 5.0;
     List<WiFiNetworkSet> connected2 = GetConnectedList();
     WiFiConnectedSensor target = new WiFiConnectedSensor(GetConnectedList(), weigth,null);
     foreach (var wiFiNetwork in connected2.First().Networks)
     {
         wiFiNetwork.SignalQuality= wiFiNetwork.SignalQuality/2;
     }
     ISensor sensor = new WiFiConnectedSensor(connected2,weigth,null);
     double expected = 0.75F;
     double actual;
     actual = target.GetDistance(sensor);
     Assert.AreEqual(expected, actual);
 }