using System; using csUnit; namespace Tests.pool { /// <summary> /// Shows use of [ExpectedException]. /// </summary> public class TestPool : PoolFixture { [Test] public void testPool() { TestFramework.ApplicationAPI.Pool pool = new TestFramework.ApplicationAPI.Pool(); pool.name = "Nouveau Pool"; TestFramework.ApplicationAPI.PoolScope scope = new TestFramework.ApplicationAPI.PoolScope(); scope.pools = new TestFramework.ApplicationAPI.PoolScope(); pool.pools = new TestFramework.ApplicationAPI.Pool[]{pool}; savePool(pool, scope); pool = loadPoolFromXPath("Pool", "Nouveau Pool", scope); Assert.NotNull(pool.ID); } } }