37 lines
869 B
C++
37 lines
869 B
C++
/** @file
|
|
* @author Edouard DUPIN
|
|
*
|
|
* @copyright 2014, Edouard DUPIN, all right reserved
|
|
*
|
|
* @license APACHE v2.0 (see license file)
|
|
*/
|
|
|
|
#include <gtest/gtest.h>
|
|
#include <exml/exml.h>
|
|
#include <exml/Comment.h>
|
|
|
|
TEST(TestComment, create) {
|
|
exml::Comment myComment("my Comment");
|
|
EXPECT_EQ(myComment.getType(), exml::nodeType::comment);
|
|
}
|
|
|
|
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;
|
|
//EXPECT_EQ(myComment, myOtherComment);
|
|
}
|
|
|
|
TEST(TestComment, transform) {
|
|
exml::Comment myComment("my comment");
|
|
exml::Node myNode = myComment;
|
|
myComment = myNode.toComment();
|
|
//EXPECT_EQ(myComment, myOtherComment);
|
|
}
|