public void TestReadWGS84ConversionInfo() { // can't use the Test() method here because IWGS84ConversionInfo is a struct // and does not implement the IInfo interface. string filename = "WGS84ConversionInfo.xml"; StreamReader tr = new StreamReader(Global.GetUnitTestRootDirectory() + @"\IO\" + filename); string xml1 = tr.ReadToEnd(); WGS84ConversionInfo info = (WGS84ConversionInfo)CoordinateSystemXmlReader.Create(xml1); string xml2 = CoordinateSystemXmlWriter.Write(info); StringReader textReader1 = new StringReader(xml1); XmlTextReader xmlReader1 = new XmlTextReader(textReader1); StringReader textReader2 = new StringReader(xml2); XmlTextReader xmlReader2 = new XmlTextReader(textReader2); bool same = _xmlDiff.Compare(xmlReader1, xmlReader2); Assertion.AssertEquals("WGS84ConversionInfo", true, same); }
public void TestProjectedCoordinateSystem() { IProjectedCoordinateSystem projectedCoordinateSystem = _factory.CreateProjectedCoordinateSystem("27700"); string test1 = CoordinateSystemXmlWriter.Write(projectedCoordinateSystem); }
public void TestWriteAngularUnit() { IAngularUnit angularUnit = _factory.CreateAngularUnit("9101"); string test1 = CoordinateSystemXmlWriter.Write(angularUnit); }
public void TestCompoundCoordinateSystem() { ICompoundCoordinateSystem compoundCoordinateSystem = _factory.CreateCompoundCoordinateSystem("7405"); string test1 = CoordinateSystemXmlWriter.Write(compoundCoordinateSystem); }
public void TestWriteLinearUnit() { ILinearUnit linearUnit = _factory.CreateLinearUnit("9001"); string test1 = CoordinateSystemXmlWriter.Write(linearUnit); }