Esempio n. 1
0
 public void TestFileGwsDimX()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gwsFileName);
     Assert.AreEqual(11, gws.Npx);
 }
Esempio n. 2
0
 public void TestFileGwsParser3()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gwsFileName);
     Assert.AreEqual(430.00, gws.data[10, 3].height);
 }
Esempio n. 3
0
 public void TestFileGwsParserXmin()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gwsFileName);
     Assert.AreEqual(1234567.0, gws.xmin);
 }
Esempio n. 4
0
 public void TestFileGwsParserYmin()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gwsFileName);
     Assert.AreEqual(0.0, gws.ymin);
 }
Esempio n. 5
0
 public void TestFileGwsParserRough3()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gwsFileName);
     Assert.AreEqual(12.3, gws.data[10, 3].rough);
 }
Esempio n. 6
0
 public void TestFileGwsParserVersion()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gwsFileName);
     Assert.AreEqual("430", gws.WindsimVersion);
 }
Esempio n. 7
0
 public void TestFileGwsParserDy()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gwsFileName);
     Assert.AreEqual(133.33, Math.Round(gws.Dy,2));
 }
Esempio n. 8
0
 public void TestFileGwsParserRough()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gwsFileName);
     Assert.AreEqual(0.01, gws.data[4, 0].rough);
 }
Esempio n. 9
0
 public void TestFileGwsParserDimY()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gwsFileName);
     Assert.AreEqual(4, gws.Npy);
 }
Esempio n. 10
0
 public void TestFileGwsParserDxy()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gwsFileName);
     Assert.AreEqual(12222222.200727, Math.Round(gws.Dxy, 6));
 }
Esempio n. 11
0
 public void TestFileGwsParserCoordSystem()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gwsFileName);
     Assert.AreEqual(3, gws.CoordinateSystem);
 }
Esempio n. 12
0
 public void TestFileGwsParserAreaName()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gwsFileName);
     Assert.AreEqual("demo", gws.AreaName);
 }
Esempio n. 13
0
 public void TestFileGwsParser5x5Ymax()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gws5x5);
     Assert.AreEqual(500.0, gws.ymax);
 }
Esempio n. 14
0
 public void TestFileGwsParser5x5Dy()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gws5x5);
     Assert.AreEqual(125, gws.Dy);
 }
Esempio n. 15
0
 public void TestFileGwsParser5x5Dxy()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gws5x5);
     Assert.AreEqual(176.777, Math.Round(gws.Dxy,3) );
 }