Example #1
0
        public void Long_WhenOneSet_ThrowsException()
        {
            var geo = new Geo();
            geo.Coordinates = new[] { 10.0 };

            Assert.That(geo.Long == 10.0);
        }
Example #2
0
        public void Long_WhenSet_ReturnsValue()
        {
            var geo = new Geo();
            geo.Coordinates = new[] { 10.0, 15.0 };

            Assert.That(geo.Long == 15.0);
        }
Example #3
0
        public void Lat_WhenOneSet_ReturnsValue()
        {
            var geo = new Geo();
            geo.Coordinates = new[] {10.0 };

            Assert.That(geo.Lat == 10.0);
        }
Example #4
0
        public void Lat_WhenNotSet_ReturnsNull()
        {
            var geo = new Geo();
            geo.Coordinates = null;

            Assert.That(geo.Lat, Is.Null);
        }