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
committed by Magne Sjaastad
parent 803b8adc25
commit a377449492

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