public override void TestIsEmpty() { IRingSet ringSet = (IRingSet)NewChemObject(); Assert.IsTrue(ringSet.IsEmpty(), "new ringset should be empty"); ringSet.Add(ringSet.Builder.NewRing()); // NCDK does not suppor to add AtomContainer object to RingSet object Assert.IsFalse(ringSet.IsEmpty(), "ringset with an atom container should not be empty"); ringSet.Clear(); Assert.IsTrue(ringSet.IsEmpty(), "ringset with removed atom containers should be empty"); }
/// <inheritdoc/> public bool IsEmpty() => (setOfMolecules == null || setOfMolecules.IsEmpty()) && (setOfReactions == null || setOfReactions.IsEmpty()) && (ringSet == null || ringSet.IsEmpty()) && (crystal == null || crystal.IsEmpty());