exml/test/exmlTestComment.cpp

35 lines
864 B
C++
Raw Permalink Normal View History

2016-04-13 23:39:22 +02:00
/** @file
* @author Edouard DUPIN
* @copyright 2014, Edouard DUPIN, all right reserved
* @license MPL v2.0 (see license file)
2016-04-13 23:39:22 +02:00
*/
2017-09-07 23:38:26 +02:00
#include <etest/etest.hpp>
2016-10-02 15:58:37 +02:00
#include <exml/exml.hpp>
#include <exml/Comment.hpp>
2016-04-13 23:39:22 +02:00
TEST(TestComment, create) {
exml::Comment myComment("my Comment");
2016-04-18 21:46:42 +02:00
EXPECT_EQ(myComment.getType(), exml::nodeType::comment);
2016-04-13 23:39:22 +02:00
}
TEST(TestComment, createCopy) {
exml::Comment myComment("my Comment");
exml::Comment myOtherComment(myComment);
//EXPECT_EQ(myComment, myOtherComment);
}
TEST(TestComment, createAssignement) {
exml::Comment myComment("my comment");
exml::Comment myOtherComment;
myOtherComment = myComment;
2016-04-13 23:39:22 +02:00
//EXPECT_EQ(myComment, myOtherComment);
}
TEST(TestComment, transform) {
exml::Comment myComment("my comment");
exml::Node myNode = myComment;
myComment = myNode.toComment();
//EXPECT_EQ(myComment, myOtherComment);
}