You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
769 B
22 lines
769 B
#include <gtest/gtest.h> |
|
#include "devilution.h" |
|
|
|
TEST(Appfat, app_fatal) { |
|
EXPECT_EXIT(dvl::app_fatal("test"), ::testing::ExitedWithCode(1), "test"); |
|
} |
|
|
|
TEST(Appfat, ErrDlg) { |
|
EXPECT_EXIT(dvl::ErrDlg("Title", "Unknown error", "appfat.cpp", 7), ::testing::ExitedWithCode(1), "Unknown error\n\nThe error occurred at: appfat.cpp line 7"); |
|
} |
|
|
|
TEST(Appfat, FileErrDlg) { |
|
EXPECT_EXIT(dvl::FileErrDlg("devilution/image.cl2"), ::testing::ExitedWithCode(1), "devilution/image.cl2"); |
|
} |
|
|
|
TEST(Appfat, InsertCDDlg) { |
|
EXPECT_EXIT(dvl::InsertCDDlg("devilution/image.cl2"), ::testing::ExitedWithCode(1), "devilution/image.cl2"); |
|
} |
|
|
|
TEST(Appfat, DirErrorDlg) { |
|
EXPECT_EXIT(dvl::DirErrorDlg("/"), ::testing::ExitedWithCode(1), "Unable to write to location:\n/"); |
|
}
|
|
|