public void Long_WhenOneSet_ThrowsException() { var geo = new Geo(); geo.Coordinates = new[] { 10.0 }; Assert.That(geo.Long == 10.0); }
public void Long_WhenSet_ReturnsValue() { var geo = new Geo(); geo.Coordinates = new[] { 10.0, 15.0 }; Assert.That(geo.Long == 15.0); }
public void Lat_WhenOneSet_ReturnsValue() { var geo = new Geo(); geo.Coordinates = new[] {10.0 }; Assert.That(geo.Lat == 10.0); }
public void Lat_WhenNotSet_ReturnsNull() { var geo = new Geo(); geo.Coordinates = null; Assert.That(geo.Lat, Is.Null); }