internal void Valuing(List <ValuedConflictNode> conflictNodes, List <AvoidElement> avoidElements) { if (IsValued) { return; } ValueNode1.Valuing(ValueNode1.OrientAvoidElement.ConflictElements.First(c => c.ConflictLocation.VL_XYEqualTo(ConflictLocation)), conflictNodes, avoidElements); ValueNode2.Valuing(ValueNode2.OrientAvoidElement.ConflictElements.First(c => c.ConflictLocation.VL_XYEqualTo(ConflictLocation)), conflictNodes, avoidElements); }
public void Test1() { var sut = new ValueNode1 <int, int>(1, 2); Assert.True(sut.ContainsKey(1, (uint)1.GetHashCode(), 0)); var sut2 = new ValueNode2 <int, int>(1, 2, 3, 4); Assert.True(sut2.ContainsKey(1, (uint)1.GetHashCode(), 0)); Assert.True(sut2.ContainsKey(3, (uint)3.GetHashCode(), 1)); }
public void Grouping(List <ValuedConflictNode> conflictNodes, List <AvoidElement> avoidElements) { if (IsGrouped) { return; } ValueNode1.Grouping(ValueNode1.OrientAvoidElement.ConflictElements.First(c => c.ConflictLocation.VL_XYEqualTo(ConflictLocation)), conflictNodes, avoidElements); ValueNode2.Grouping(ValueNode2.OrientAvoidElement.ConflictElements.First(c => c.ConflictLocation.VL_XYEqualTo(ConflictLocation)), conflictNodes, avoidElements); }