Files
RedisDesktopManager/tests/source/test_command.cpp
T
Igor Malinovskiy 8ce22d4909 Refactored RedisConnectionAbstract:
- Move response processing code to Response class
 - Move command processing code to Command class
2013-10-09 14:04:39 +03:00

20 lines
316 B
C++

#include "test_command.h"
#include "Command.h"
#include <QTest>
void TestCommand::prepareCommand()
{
//given
//Command class
//when
QVariant actualResult = Command::getFormatted("EXISTS testkey:test");
//then
QCOMPARE(actualResult, QVariant("*2\r\n$6\r\nEXISTS\r\n$12\r\ntestkey:test\r\n"));
}