public void Test_swe_csroundsec() { using (var target = new SwissEph()) { Assert.AreEqual(0, target.swe_csroundsec(0)); Assert.AreEqual(10440000, target.swe_csroundsec(29 * SwissEph.DEG)); Assert.AreEqual(10799900, target.swe_csroundsec(10800000 - 40)); Assert.AreEqual(10800000, target.swe_csroundsec(30 * SwissEph.DEG)); Assert.AreEqual(-10439900, target.swe_csroundsec(-29 * SwissEph.DEG)); Assert.AreEqual(-10799900, target.swe_csroundsec(-(10800000 - 40))); Assert.AreEqual(-10799900, target.swe_csroundsec(-30 * SwissEph.DEG)); Assert.AreEqual(1200, target.swe_csroundsec(1234)); Assert.AreEqual(9900, target.swe_csroundsec(9876)); Assert.AreEqual(-1100, target.swe_csroundsec(-1234)); Assert.AreEqual(-9800, target.swe_csroundsec(-9876)); } }
public void Test_swe_csroundsec() { using (var target = new SwissEph()) { Assert.AreEqual(0, target.swe_csroundsec(0)); Assert.AreEqual(10440000, target.swe_csroundsec(29 * SwissEph.DEG)); Assert.AreEqual(10799900, target.swe_csroundsec(10800000 - 40)); Assert.AreEqual(10800000, target.swe_csroundsec(30 * SwissEph.DEG)); Assert.AreEqual(-10439900, target.swe_csroundsec(-29 * SwissEph.DEG)); Assert.AreEqual(-10799900, target.swe_csroundsec(-(10800000 - 40))); Assert.AreEqual(-10799900, target.swe_csroundsec(-30 * SwissEph.DEG)); Assert.AreEqual(1200, target.swe_csroundsec(1234)); Assert.AreEqual(9900, target.swe_csroundsec(9876)); Assert.AreEqual(-1100, target.swe_csroundsec(-1234)); Assert.AreEqual(-9800, target.swe_csroundsec(-9876)); } }