Main Lemma Repository
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /* This file is part of Lemma, a geophysical modelling and inversion API.
  2. * More information is available at http://lemmasoftware.org
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. */
  8. /**
  9. * @file
  10. * @date 06/23/2016 01:26:46 PM
  11. * @version $Id$
  12. * @author Trevor Irons (ti)
  13. * @email tirons@egi.utah.edu
  14. * @copyright Copyright (c) 2016, University of Utah
  15. * @copyright Copyright (c) 2016, Lemma Software, LLC
  16. */
  17. #include <cxxtest/TestSuite.h>
  18. #include <LemmaCore>
  19. #include <FDEM1D>
  20. using namespace Lemma;
  21. class MyTestSuite : public CxxTest::TestSuite
  22. {
  23. public:
  24. void testLayeredEarthEM( void )
  25. {
  26. auto Obj = LayeredEarthEM::NewSP();
  27. TS_ASSERT_EQUALS( Obj->GetName(), std::string("LayeredEarthEM") );
  28. }
  29. void testLayeredEarthEMReader( void )
  30. {
  31. auto Obj = LayeredEarthEMReader::NewSP();
  32. TS_ASSERT_EQUALS( Obj->GetName(), std::string("LayeredEarthEMReader") );
  33. }
  34. void testFieldPoints( void )
  35. {
  36. auto Obj = FieldPoints::NewSP();
  37. TS_ASSERT_EQUALS( Obj->GetName(), std::string("FieldPoints") );
  38. }
  39. void testWireAntenna( void )
  40. {
  41. auto Obj = WireAntenna::NewSP();
  42. TS_ASSERT_EQUALS( Obj->GetName(), std::string("WireAntenna") );
  43. }
  44. void testCircularLoop( void )
  45. {
  46. auto Obj = CircularLoop::NewSP();
  47. TS_ASSERT_EQUALS( Obj->GetName(), std::string("CircularLoop") );
  48. }
  49. void testPolygonalWireAntenna( void )
  50. {
  51. auto Obj = PolygonalWireAntenna::NewSP();
  52. TS_ASSERT_EQUALS( Obj->GetName(), std::string("PolygonalWireAntenna") );
  53. }
  54. void testDipoleSource( void )
  55. {
  56. auto Obj = DipoleSource::NewSP();
  57. TS_ASSERT_EQUALS( Obj->GetName(), std::string("DipoleSource") );
  58. }
  59. // MSVC fails on this
  60. // void testEMEarth1D( void )
  61. // {
  62. // auto Obj = EMEarth1D::NewSP();
  63. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("EMEarth1D") );
  64. // }
  65. // void testAEMSurvey( void )
  66. // {
  67. // auto Obj = AEMSurvey::NewSP();
  68. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("AEMSurvey") );
  69. // }
  70. // void testAEMSurveyReader( void )
  71. // {
  72. // auto Obj = AEMSurveyReader::NewSP();
  73. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("AEMSurveyReader") );
  74. // }
  75. // void testChargedWellCasing( void )
  76. // {
  77. // auto Obj = ChargedWellCasing::NewSP();
  78. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("ChargedWellCasing") );
  79. // }
  80. // void testKernelEM1DManager( void )
  81. // {
  82. // auto Obj = KernelEM1DManager::NewSP();
  83. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("KernelEM1DManager") );
  84. // }
  85. //
  86. // void testKernelEM1DSpec( void )
  87. // {
  88. // auto Obj = KernelEM1DSpec::NewSP();
  89. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("KernelEM1DSpec") );
  90. // }
  91. //
  92. // void testKernelEM1DReflSpec( void )
  93. // {
  94. // auto Obj = KernelEM1DReflSpec::NewSP();
  95. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("KernelEM1DReflSpec") );
  96. // }
  97. };