| 26 | namespace sitk = itk::simple; |
| 27 | |
| 28 | TEST(ImageViewerTest, Methods) |
| 29 | { |
| 30 | itk::simple::ImageViewer iv; |
| 31 | |
| 32 | std::cout << iv.ToString() << std::endl; |
| 33 | |
| 34 | iv.SetTitle("ImageViewerTest"); |
| 35 | EXPECT_EQ(iv.GetTitle(), "ImageViewerTest"); |
| 36 | |
| 37 | EXPECT_EQ(iv.GetName(), "ImageViewer"); |
| 38 | |
| 39 | iv.SetFileExtension(".png"); |
| 40 | EXPECT_EQ(iv.GetFileExtension(), ".png"); |
| 41 | |
| 42 | iv.SetApplication("testapp", "testcommand"); |
| 43 | EXPECT_EQ(iv.GetApplication(), "testapp"); |
| 44 | EXPECT_EQ(iv.GetCommand(), "testcommand"); |
| 45 | |
| 46 | |
| 47 | unsigned int delay; |
| 48 | delay = iv.GetProcessDelay(); |
| 49 | |
| 50 | #ifdef _WIN32 |
| 51 | EXPECT_EQ(delay, 1u); |
| 52 | #else |
| 53 | EXPECT_EQ(delay, 500u); |
| 54 | #endif |
| 55 | iv.SetProcessDelay(delay); |
| 56 | } |
| 57 | |
| 58 | TEST(ImageViewerTest, GlobalDefaults) |
| 59 | { |
nothing calls this directly
no test coverage detected