4
* Copyright (C) 2010 Eric Day (eday@oddments.org)
7
* Use and distribution licensed under the BSD license. See the
8
* COPYING file in the root project directory for full text.
18
#include <ScaleStack/TestCommon.h>
19
#include <ScaleStack/Module.h>
21
TEST_BEGIN(constructor)
22
ScaleStack::Module module("TestModule");
23
assert(module.getName() == "TestModule");
24
assert(module.getPathname() == "");
25
assert(module.getCanonicalName() == "");
26
assert(module.getVersion() == "");
27
assert(module.getAuthor() == "");
28
assert(module.getTitle() == "");
29
assert(module.getLicense() == "");
30
assert(module.getDependencies().size() == 0);
31
assert(module.checkName("TestModule") == true);
32
assert(module.checkName("BadModule") == false);
35
TEST_RUNNER_BEGIN(Module)
36
TEST_RUN(constructor);