public void GetSubgroupsOfCyclicGroupSeven() { IGroup group = new GeneratedGroup(Element.CreateRotation(7)); IEnumerable <IGroup> subgroups = GroupUtilities.GetSubgroups(group); Assert.IsNotNull(subgroups); Assert.AreEqual(2, subgroups.Count()); }
public void GetSubgroupsOfMinimalGroup() { IGroup group = new SymmetricGroup(2); IEnumerable <IGroup> subgroups = GroupUtilities.GetSubgroups(group); Assert.IsNotNull(subgroups); Assert.AreEqual(2, subgroups.Count()); }
public void GetSubgroupsOfSymetricGroupFour() { IGroup group = new SymmetricGroup(4); IEnumerable <IGroup> subgroups = GroupUtilities.GetSubgroups(group); Assert.IsNotNull(subgroups); Assert.AreEqual(30, subgroups.Count()); }
public void SubgroupsIncludesIdentityAndTotalGroup() { IGroup group = new SymmetricGroup(3); IGroup id = new GeneratedGroup(Element.CreateIdentity(3)); IEnumerable <IGroup> subgroups = GroupUtilities.GetSubgroups(group); Assert.IsTrue(subgroups.Contains(id)); Assert.IsTrue(subgroups.Contains(group)); }