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

This commit is contained in:
Kristian Bendiksen 2022-08-01 15:02:50 +02:00
parent 40cc3f9dc6
commit ed03bd716e

View File

@ -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() );
}