public void POITest() { var path = @"C:\Users\Dzaco\Desktop\Private\project\SensorLifetimeApp\SensorLifetimeApp\Resources\PoiState.xml"; var poi = new POI(1, 10, 10, null); poi.WriteToFile(path); var poi2 = POI.ReadFromFile(path); Assert.IsTrue(poi.Equals(poi2)); }