tests: Adding unit tests.
The purpose of this commit is to start pushing unit test I am writing. I will add more unit tests in each patch
Refs: #1496
Change-Id: Ic132adddfa06a95780712eba63966d3bab4743af
diff --git a/tests/test-sequencing-manager.cpp b/tests/test-sequencing-manager.cpp
new file mode 100644
index 0000000..9ae9d55
--- /dev/null
+++ b/tests/test-sequencing-manager.cpp
@@ -0,0 +1,31 @@
+/**
+ * Copyright (C) 2014 Regents of the University of Memphis.
+ * See COPYING for copyright and distribution information.
+ */
+
+#include "sequencing-manager.hpp"
+#include <boost/test/unit_test.hpp>
+
+namespace nlsr {
+
+namespace test {
+
+BOOST_AUTO_TEST_SUITE(TestSequencingManager)
+
+BOOST_AUTO_TEST_CASE(SequencingManagerBasic)
+{
+ SequencingManager sm1(120, 121, 122);
+
+ SequencingManager sm2(sm1.getCombinedSeqNo());
+
+ BOOST_CHECK_EQUAL(sm2.getNameLsaSeq(), 120);
+
+ BOOST_CHECK_EQUAL(sm2.getAdjLsaSeq(), 121);
+
+ BOOST_CHECK_EQUAL(sm2.getCorLsaSeq(), 122);
+}
+
+BOOST_AUTO_TEST_SUITE_END()
+
+} //namespace test
+} //namespace nlsr