예제 #1
0
        public void testDeleteGroup()
        {
            var group2 = unisens2.getGroup("group2");

            Assert.IsNotNull(group2);
            unisens2.deleteGroup(group2);
            Assert.IsNull(unisens2.getGroup("group2"));
            unisens2.addGroup(group2, false);
        }
예제 #2
0
        public void testAddGroup()
        {
            Group group2 = unisens2.getGroups()[0];
            Group group1 = unisens1.addGroup(group2, true);

            Assert.IsNotNull(unisens1.getGroup(group2.getId()));
            Assert.AreEqual(group2.getComment(), group1.getComment());
            foreach (Entry entry in group2.getEntries())
            {
                Assert.IsNotNull(unisens1.getEntry(entry.getId()));
            }
        }