Exemplo n.º 1
0
 public void CreatesLongitude()
 {
     Assert.AreEqual(0f, Longitude.Create(-360f).TotalDegrees);
     Assert.AreEqual(90f, Longitude.Create(-270f).TotalDegrees);
     Assert.AreEqual(-180f, Longitude.Create(-180f).TotalDegrees);
     Assert.AreEqual(-90f, Longitude.Create(-90f).TotalDegrees);
     Assert.AreEqual(0f, Longitude.Create(0f).TotalDegrees);
     Assert.AreEqual(90f, Longitude.Create(90f).TotalDegrees);
     Assert.AreEqual(180f, Longitude.Create(180f).TotalDegrees);
     Assert.AreEqual(-90f, Longitude.Create(270f).TotalDegrees);
     Assert.AreEqual(0f, Longitude.Create(360f).TotalDegrees);
 }