Commit 98df087f authored by Michal Vaner's avatar Michal Vaner
Browse files

Test for constructor of MemoryZone

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent b61101c7
......@@ -111,4 +111,31 @@ TEST_F(MemoryDataSrcTest, add_find_Zone) {
/// \brief Test fixture for the MemoryZone class
class MemoryZoneTest : public ::testing::Test {
MemoryZoneTest() :
zone_(class_, origin_)
{ }
// Some data to test with
RRClass class_;
Name origin_;
// The zone to torture by tests
MemoryZone zone_;
* \brief Test MemoryZone::MemoryZone constructor.
* Takes the created zone and checks its properties they are the same
* as passed parameters.
TEST_F(MemoryZoneTest, Constructor) {
ASSERT_EQ(class_, zone_.getClass());
ASSERT_EQ(origin_, zone_.getOrigin());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment