Пример #1
0
USING_HAMCREST_NS
USING_MAGELLAN_NS

FIXTURE(XmlNodeTest)
{
    XmlNode node {"person"};

    void expectXml(const std::string& expected)
    {
        ASSERT_THAT(node.toXml(), is(expected));
    }
Пример #2
0
USING_MAGELLAN_NS
USING_HAMCREST_NS

FIXTURE(XmlBuilderTest)
{
    XmlNode node {"bookstore"};
	XmlBuilder builder {&node};

	void expectXml(const std::string& expected)
	{
		ASSERT_THAT(node.toXml(), is(expected));
	}