Example #1
0
        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));
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
 public void TestAdd()
 {
     var sut    = new ValueNode1 <int, int>(1, 2);
     var actual = sut.Add(3, 4, 0, new NET.V3.ImmutableDictionary <int, int> [0], 0, 1);
 }