public void SetupTest() { int n = 5; PermutationGroup group = new PermutationGroup(n); Graph g = new Graph(n); MockRefiner refiner = new MockRefiner(g); Setup(refiner, group, g); Assert.AreEqual(group, refiner.GetAutomorphismGroup()); }
public void GetGroupTest() { int n = 3; Graph g = new Graph(n) { connectionTable = new int[][] { new[] { 0, 1, 0 }, new[] { 1, 0, 1 }, new[] { 0, 1, 0 } } }; PermutationGroup group = new PermutationGroup(n); MockRefiner refiner = new MockRefiner(g); Setup(refiner, group, g); Assert.IsNotNull(refiner.GetAutomorphismGroup()); }