public void Test_TestAngularUnit()
        {
            IAngularUnit angularUnit = _factory.CreateAngularUnit("9101");

            Assertion.AssertEquals("AngularUnit - untis per meter ", 1.0, angularUnit.RadiansPerUnit);
            Assertion.AssertEquals("AngularUnit - Authority", "EPSG", angularUnit.Authority);
            Assertion.AssertEquals("AngularUnit - Remarks", "SI standard unit.", angularUnit.Remarks);
        }
        public void TestWriteUnit2()
        {
            IAngularUnit       AngularUnit        = _factory.CreateAngularUnit("9101");
            TextWriter         textwriter         = new StringWriter();
            IndentedTextWriter indentedTextWriter = new IndentedTextWriter(textwriter);

            CoordinateSystemWktWriter.Write(AngularUnit, indentedTextWriter);
            bool same = Compare.CompareAgainstString(Global.GetUnitTestRootDirectory() + @"\IO\Radians.txt", textwriter.ToString());

            Assertion.AssertEquals("test 1", true, same);
        }
Esempio n. 3
0
 public void TestWriteAngularUnit()
 {
     IAngularUnit angularUnit = _factory.CreateAngularUnit("9101");
     string       test1       = CoordinateSystemXmlWriter.Write(angularUnit);
 }