Ejemplo n.º 1
0
        public void CreateOnNoArgsReturnsEmptySet()
        {
            PersistentHashSet m = PersistentHashSet.create();

            Expect(m.count(), EqualTo(0));
            Expect(m.meta(), Null);
        }
        public void CreateOnNoArgsReturnsEmptySet()
        {
            PersistentHashSet m = PersistentHashSet.create();

            Expect(m.count()).To.Equal(0);
            Expect(m.meta()).To.Be.Null();
        }
Ejemplo n.º 3
0
        public void CreateOnNoArgsReturnsSet()
        {
            PersistentHashSet m = PersistentHashSet.create(1, "a");

            Expect(m.count(), EqualTo(2));
            Expect(m.contains(1));
            Expect(m.contains("a"));
            Expect(m.contains(3), False);
            Expect(m.meta(), Null);
        }
        public void CreateOnNoArgsReturnsSet()
        {
            PersistentHashSet m = PersistentHashSet.create(1, "a");

            Expect(m.count()).To.Equal(2);
            Expect(m.contains(1));
            Expect(m.contains("a"));
            Expect(m.contains(3)).To.Be.False();
            Expect(m.meta()).To.Be.Null();
        }