public void TestCreateVerticalCoordinateSystem1() { IVerticalCoordinateSystem vcs = _factory.CreateVerticalCoordinateSystem("5701"); Assertion.AssertEquals("vcs ctor. 1", "Newlyn", vcs.Name); Assertion.AssertEquals("vcs ctor. 2", "Ordnance Datum Newlyn", vcs.VerticalDatum.Name); }
public void TestWriteVerticalCoordinateSystem() { IVerticalCoordinateSystem VerticalCoordinateSystem = _factory.CreateVerticalCoordinateSystem("5701"); TextWriter textwriter = new StringWriter(); IndentedTextWriter indentedTextWriter = new IndentedTextWriter(textwriter); CoordinateSystemWktWriter.Write(VerticalCoordinateSystem, indentedTextWriter); bool same = Compare.CompareAgainstString(Global.GetUnitTestRootDirectory() + @"\IO\VerticalCoordinateSystem.txt", textwriter.ToString()); Assertion.AssertEquals("test 1", true, same); }
public void Test_Constructor1() { ICoordinateSystem headCRS = _factory.CreateProjectedCoordinateSystem("27700"); ICoordinateSystem tailCRS = _factory.CreateVerticalCoordinateSystem("5701"); CompoundCoordinateSystem compoundCS = new CompoundCoordinateSystem(headCRS, tailCRS, "remarks", "authority", "code", "name", "alias", "abbreviation"); Assertion.AssertEquals("ctor1.", headCRS, compoundCS.HeadCS); Assertion.AssertEquals("ctor2.", tailCRS, compoundCS.TailCS); Assertion.AssertEquals("ctor3.", "remarks", compoundCS.Remarks); Assertion.AssertEquals("ctor3.", "authority", compoundCS.Authority); Assertion.AssertEquals("ctor3.", "code", compoundCS.AuthorityCode); Assertion.AssertEquals("ctor3.", "name", compoundCS.Name); Assertion.AssertEquals("ctor3.", "alias", compoundCS.Alias); Assertion.AssertEquals("ctor3.", "abbreviation", compoundCS.Abbreviation); }