blob: e9cfa8b421352b8be130dccc2fdb5141644fc9c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* Copyright (c) 2017 Tarun Gupta
* Licensed under the simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#include <gtest/gtest.h>
#include <Swiften/Serializer/PayloadSerializers/MIXDestroySerializer.h>
using namespace Swift;
TEST(MIXDestroySerializerTest, XEP0369_Example31) {
MIXDestroySerializer testling;
auto destroy = std::make_shared<MIXDestroy>();
destroy->setChannel(std::string("coven"));
std::string expectedResult = "<destroy channel=\"coven\" xmlns=\"urn:xmpp:mix:1\"/>";
ASSERT_EQ(expectedResult, testling.serialize(destroy));
}
|