public void interpolatedData3x3_1_1()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gws3x3);
     AutomaticGrid.Geometrical result = new AutomaticGrid.Geometrical(gws, 2.0, 0.0, 4.0, 0.0, 2.5, 1, 1, 1, 1);
     Assert.AreEqual(9.41, Math.Round(result.firstCellHeightMap.data[1, 1][2], 2));
 }
 public void interpolatedData3x3_2_6_125_375ax()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gws3x3);
     AutomaticGrid.Geometrical result = new AutomaticGrid.Geometrical(gws, 2.0, 2.0, 6.0, 1.25, 3.75, 1, 1, 1, 1);
     Assert.AreEqual(2.0, Math.Round(result.firstCellHeightMap.data[0, 0][0], 2));
 }
 public void Test_save_to_bws()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gws3x3);
     AutomaticGrid.Geometrical result = new AutomaticGrid.Geometrical(gws, 2.0, 0.0, 8.0, 0.0, 5.0, 10, 12, 100, 10);
     WSProject project = new WSProject(project_file.FullName);
     Assert.IsTrue(result.SaveToBws(project, "test"));
 }
 public void test_RefinementGenerator_write_the_bws_file_in_the_proper_Directory_aritm()
 {
     WSProject project = new WSProject(project_file.FullName);
     string bws_filename = "test_bws_position234";
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gws3x3);
     AutomaticGrid.Geometrical result = new AutomaticGrid.Geometrical(gws, 2.0, 0.0, 8.0, 0.0, 5.0, 10, 12, 100, 10);
     bool save = result.SaveToBws(project, bws_filename);
     string expected_file_path = project.file.Directory.FullName + "\\dtm\\" + "test_bws_position234" + ".bws"; ;
     FileInfo expected_file = new FileInfo(expected_file_path);
     Assert.IsTrue(expected_file.Exists);
     //
 }
 public void test_RefinementGenerator_load_proper_bws_file_name_project_parameters()
 {
     WSProject project = new WSProject(project_file.FullName);
     string bws_filename = "test_bws_position";
     string bws_file = bws_filename + ".bws";
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gws3x3);
     AutomaticGrid.Geometrical result = new AutomaticGrid.Geometrical(gws, 2.0, 0.0, 8.0, 0.0, 5.0, 10, 12, 100, 10);
     bool save = result.SaveToBws(project, bws_filename);
     Assert.AreEqual(bws_file, project.parameters.CFD.RefinementFileName);
 }
 public void test_maxGroungHeight_to_be_verified()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gws3x3);
     AutomaticGrid.Geometrical result = new AutomaticGrid.Geometrical(gws, 2.0, 0.0, 8.0, 0.0, 5.0, 10, 10, 100, 10);
     // valore da verificare!
     Assert.AreEqual(6.25, Math.Round(result.maxGroungHeight,2));
 }
 public void interpolatedData3x3_6_8_375_5d()
 {
     ParseManager parser = new ParseManager();
     FileGws gws = parser.ParseGws(gws3x3);
     AutomaticGrid.Geometrical result = new AutomaticGrid.Geometrical(gws, 2.0, 6.0, 8.0, 3.75, 5.0, 1, 1, 1, 1);
     Assert.AreEqual(8.5, Math.Round(result.firstCellHeightMap.data[1, 0][2], 2));
 }