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