public void PathVisitor_VisitNestedContainer_ReturnVisitErrorCodeOk()
        {
            var container = new StructWithNestedStruct
            {
                Container = new StructWithPrimitives()
            };

            var visitor = new TestPathVisitor(new PropertyPath($"{nameof(StructWithNestedStruct.Container)}.{nameof(StructWithPrimitives.Float64Value)}"));

            PropertyContainer.Accept(visitor, ref container);

            Assert.That(visitor.ErrorCode, Is.EqualTo(VisitErrorCode.Ok));
        }
        public void PathVisitor_VisitArrayElement_ReturnVisitErrorCodeOk()
        {
            var container = new ClassWithLists
            {
                Int32List = new List <int> {
                    1, 2, 3
                }
            };

            var visitor = new TestPathVisitor(new PropertyPath($"{nameof(ClassWithLists.Int32List)}[1]"));

            PropertyContainer.Accept(visitor, ref container);

            Assert.That(visitor.ErrorCode, Is.EqualTo(VisitErrorCode.Ok));
        }