public void Test_PrimeMeridian() { IPrimeMeridian primeMeridian = _factory.CreatePrimeMeridian("8902"); Assertion.AssertEquals("PrimeMeridian - degress from Greenwich", -9.0754862, primeMeridian.Longitude); Assertion.AssertEquals("PrimeMeridian - remarks", "", primeMeridian.Remarks); }
public void TestWritePrimeMeridian() { IPrimeMeridian PrimeMeridian = _factory.CreatePrimeMeridian("8901"); TextWriter textwriter = new StringWriter(); IndentedTextWriter indentedTextWriter = new IndentedTextWriter(textwriter); CoordinateSystemWktWriter.Write(PrimeMeridian, indentedTextWriter); bool same = Compare.CompareAgainstString(Global.GetUnitTestRootDirectory() + @"\IO\PrimeMeridian.txt", textwriter.ToString()); Assertion.AssertEquals("test 1", true, same); }