Thermal Fracture Import: Add test for loading non-existing file.

This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2022-09-15 08:19:41 +02:00
1 parent 803b8adc25
commit a377449492
1 file changed
+13
@@ -92,3 +92,16 @@ TEST( RifThermalFractureReaderTest, LoadFileMixedUnits )
EXPECT_FALSE( errorMessage.isEmpty() );
EXPECT_FALSE( fractureData.get() );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
TEST( RifThermalFractureReaderTest, LoadFileNonExistingFiles )
{
QString fileName = CASE_REAL_TEST_DATA_DIRECTORY_03 + "this_file_does_not_exist.csv";
auto [fractureData, errorMessage] = RifThermalFractureReader::readFractureCsvFile( fileName );
EXPECT_FALSE( errorMessage.isEmpty() );
EXPECT_FALSE( fractureData.get() );
}