public void NsetNodesCoordinateTest(string inp, string nset_name, Coodinate comp, string results) { //Assert.Fail(inp); var m = parser.parse_string(inp); var nset = m.global_nsets[nset_name]; double[] ans = null; switch (comp) { case Coodinate.X: ans = nset.Select(nid => m.global_nodes[nid].X).ToArray(); break; case Coodinate.Y: ans = nset.Select(nid => m.global_nodes[nid].Y).ToArray(); break; case Coodinate.Z: ans = nset.Select(nid => m.global_nodes[nid].Z).ToArray(); break; } foreach (var res in results.Split(',').Select(s => double.Parse(s)).ToArray()) { CollectionAssert.Contains(ans, res); } }
public override Coodinate MoveForward(Coodinate location) { location.Y -= 1; return location; }
public abstract Coodinate MoveForward(Coodinate location);