Beispiel #1
0
        public void InstantiateFromIntArray()
        {
            superq sq = superq.Create(new int[3] {
                1, 2, 3
            });

            Assert.AreEqual(3, sq.list.count);
        }
Beispiel #2
0
        public void CreateRemote()
        {
            superq sq = superq.Create(new int[] { 1, 2, 3 }, "sq1", "127.0.0.1:9990");

            try
            {
                sq = superq.Read("sq1", "127.0.0.1:9990");
            }
            catch
            {
                Assert.Fail("superq either not created or not read.");
            }
        }
Beispiel #3
0
        public void DeleteRemote()
        {
            superq.Delete("sq1", "127.0.0.1:9990");

            try
            {
                superq sq = superq.Read("sq1", "127.0.0.1:9990");
            }
            catch
            {
                return;
            }

            Assert.Fail("superq not deleted.");
        }
Beispiel #4
0
        public void RetrieveElemByIndex()
        {
            superq sq = superq.Create(new int[] { 1, 2, 3 });

            Assert.AreEqual(2, sq[1]);
        }
Beispiel #5
0
 public void BasicInstantiation()
 {
     superq sq = superq.Create(new object[0]);
 }
Beispiel #6
0
        public void ReadRemote()
        {
            superq sq = superq.Read("sq1", "127.0.0.1:9990");

            Assert.AreEqual(1, sq[0]);
        }
Beispiel #7
0
 public void InstantiateWithKeyCol()
 {
     superq sq = superq.Create(new FooNode[] { new FooNode(1), new FooNode(2) }, "a");
 }
Beispiel #8
0
 public void InstantiateFromCustomObjects()
 {
     superq sq = superq.Create(new FooNode[] { new FooNode(1), new FooNode(2) });
 }
Beispiel #9
0
 public void InstantiateFromNonUniqueList()
 {
     superq sq = superq.Create(new int[] { 1, 1, 2 });
 }