/* This file is part of the db4o object database http://www.db4o.com

Copyright (C) 2004 - 2010  Versant Corporation http://www.versant.com

db4o is free software; you can redistribute it and/or modify it under
the terms of version 3 of the GNU General Public License as published
by the Free Software Foundation.

db4o is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License along
with this program.  If not, see http://www.gnu.org/licenses/. */
using Db4objects.Db4o.Tests.Common.Btree;

namespace Db4objects.Db4o.Tests.Common.Btree
{
	public class BTreeAsSetTestCase : BTreeTestCaseBase
	{
		/// <summary>For now this won't work completely easy.</summary>
		/// <remarks>
		/// For now this won't work completely easy.
		/// If multiple transactions add the same value, there may
		/// be multiple add patches in the BTree with the same value.
		/// There could be many of these patches and they could even
		/// be on different nodes, so we may be on the wrong node
		/// when we want to check.
		/// We will have to take a look at this again for unique field
		/// values, so the test can stay here.
		/// </remarks>
		public virtual void _testAddSameValueFromSameTransaction()
		{
			Add(42);
			Add(42);
			AssertSingleElement(42);
		}
	}
}
