public void PropertyChangedTest()
 {
     var geoRect = new GeoRect(44, 41, -69, -72);
     Post.Cast<GeoRect, INotifyPropertyChanged>(geoRect).PropertyChanged += (s, e) => Console.WriteLine("PropertyChanged: {0}", e.PropertyName);
     var insideGeo = new Geo(42, -70);
     var outsideGeo = new Geo(0, 0);
     Assert.IsTrue(geoRect.Contains(insideGeo));
     Assert.IsFalse(geoRect.Contains(outsideGeo));
     Console.WriteLine("Setting North to 45");
     geoRect.North = 45;
 }
 public void StaticDensitySeed()
 {
     var geoRect = new GeoRect(1, -1, 1, -1);
     var bathymetry = new Bathymetry();
     bathymetry.Samples.Add(new Geo<float>(geoRect.Center.Latitude,geoRect.Center.Longitude,100));
     var list = Animat.Seed(new ScenarioSpecies{LatinName = "Orca orca", PopulationDensity = .2f}, geoRect,bathymetry);
     foreach (var animatLocation in list.Locations)
     {
         Assert.IsTrue(geoRect.Contains(animatLocation));
         Assert.IsTrue(animatLocation.Data < 100 && animatLocation.Data > 0);
     }
 }
 public void ContainsGeo()
 {
     var baseRect = new GeoRect(43, 41, -69, -71);
     var containedWithin = new Geo(42, -70);
     Assert.IsTrue(baseRect.Contains(containedWithin));
 }
 public void ContainsRect()
 {
     var baseRect = new GeoRect(43, 41, -69, -71);
     var containedWithin = new GeoRect(42.5, 41.5, -69.5, -70.5);
     Assert.IsTrue(baseRect.Contains(containedWithin));
 }