Преглед на файлове

Added test

enhancement_3
Trevor Irons преди 8 години
родител
ревизия
8020d593a9
променени са 1 файла, в които са добавени 66 реда и са изтрити 0 реда
  1. 66
    0
      LemmaCore/testing/GetNameCheck.h

+ 66
- 0
LemmaCore/testing/GetNameCheck.h Целия файл

@@ -0,0 +1,66 @@
1
+/* This file is part of Lemma, a geophysical modelling and inversion API.
2
+ * More information is available at http://lemmasoftware.org
3
+ */
4
+
5
+/* This Source Code Form is subject to the terms of the Mozilla Public
6
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
7
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
+ */
9
+
10
+/**
11
+ * @file
12
+ * @date      06/16/2016 09:12:46 PM
13
+ * @version   $Id$
14
+ * @author    Trevor Irons (ti)
15
+ * @email     tirons@egi.utah.edu
16
+ * @copyright Copyright (c) 2016, University of Utah
17
+ * @copyright Copyright (c) 2016, Trevor Irons & Lemma Software, LLC
18
+ */
19
+
20
+#include <cxxtest/TestSuite.h>
21
+#include <LemmaCore>
22
+
23
+using namespace Lemma;
24
+
25
+class MyTestSuite : public CxxTest::TestSuite
26
+{
27
+    public:
28
+
29
+    void testASCIIParser( void )
30
+    {
31
+        auto Obj = ASCIIParser::NewSP();
32
+        TS_ASSERT_EQUALS( Obj->GetName(), std::string("ASCIIParser") );
33
+    }
34
+
35
+    void testCubicSplineInterpolator(void)
36
+    {
37
+        auto Obj = CubicSplineInterpolator::NewSP();
38
+        TS_ASSERT_EQUALS( Obj->GetName(), std::string("CubicSplineInterpolator") );
39
+    }
40
+
41
+    void testRectilinearGrid( void )
42
+    {
43
+        auto Obj = RectilinearGrid::NewSP();
44
+        TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGrid") );
45
+    }
46
+
47
+    void testRectilinearGridReader( void )
48
+    {
49
+        auto Obj = RectilinearGridReader::NewSP();
50
+        TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridReader") );
51
+    }
52
+
53
+    void testRectilinearGridVTKExporter( void )
54
+    {
55
+        auto Obj = RectilinearGridVTKExporter::NewSP();
56
+        TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridVTKExporter") );
57
+    }
58
+
59
+    void testWindowFilter( void )
60
+    {
61
+        auto Obj = WindowFilter::NewSP();
62
+        TS_ASSERT_EQUALS( Obj->GetName(), std::string("WindowFilter") );
63
+    }
64
+
65
+};
66
+

Loading…
Отказ
Запис