public void NetworkIsDeletedWhenDisposedAndFlagIsSet() { using (var nw = _host.CreateNetwork("unit-test-network", removeOnDispose: true)) { Assert.IsTrue(nw.Id.Length > 0); Assert.AreEqual("unit-test-network", nw.Name); } var networks = _host.GetNetworks(); Assert.IsTrue(networks.Count(x => x.Name == "unit-test-network") == 0); }