private bool Expect(IObjectContainer container, string[] names)
            {
                Collection4 expected = new Collection4(names);
                IObjectSet  actual   = container.Query(typeof(CrashSimulatingTestSuite.CrashData));

                while (actual.HasNext())
                {
                    CrashSimulatingTestSuite.CrashData current = (CrashSimulatingTestSuite.CrashData)
                                                                 actual.Next();
                    if (!expected.Remove(current._name))
                    {
                        return(false);
                    }
                }
                return(expected.IsEmpty());
            }
            private void Populate(IObjectContainer container)
            {
                for (int i = 0; i < 10; i++)
                {
                    container.Store(new CrashSimulatingTestSuite.Item("delme"));
                }
                CrashSimulatingTestSuite.CrashData one = new CrashSimulatingTestSuite.CrashData(null
                                                                                                , "one");
                CrashSimulatingTestSuite.CrashData two = new CrashSimulatingTestSuite.CrashData(one
                                                                                                , "two");
                CrashSimulatingTestSuite.CrashData three = new CrashSimulatingTestSuite.CrashData
                                                               (one, "three");
                container.Store(one);
                container.Store(two);
                container.Store(three);
                container.Commit();
                IObjectSet objectSet = container.Query(typeof(CrashSimulatingTestSuite.Item));

                while (objectSet.HasNext())
                {
                    container.Delete(objectSet.Next());
                }
            }
 public CrashData(CrashSimulatingTestSuite.CrashData next_, string name)
 {
     _next = next_;
     _name = name;
 }
			public CrashData(CrashSimulatingTestSuite.CrashData next_, string name)
			{
				_next = next_;
				_name = name;
			}
			private void Populate(IObjectContainer container)
			{
				for (int i = 0; i < 10; i++)
				{
					container.Store(new CrashSimulatingTestSuite.Item("delme"));
				}
				CrashSimulatingTestSuite.CrashData one = new CrashSimulatingTestSuite.CrashData(null
					, "one");
				CrashSimulatingTestSuite.CrashData two = new CrashSimulatingTestSuite.CrashData(one
					, "two");
				CrashSimulatingTestSuite.CrashData three = new CrashSimulatingTestSuite.CrashData
					(one, "three");
				container.Store(one);
				container.Store(two);
				container.Store(three);
				container.Commit();
				IObjectSet objectSet = container.Query(typeof(CrashSimulatingTestSuite.Item));
				while (objectSet.HasNext())
				{
					container.Delete(objectSet.Next());
				}
			}