Пример #1
0
        private LockFileItem ReadFileItem(string property, JsonValue json)
        {
            var item = new LockFileItem {
                Path = PathUtility.GetPathWithDirectorySeparator(property)
            };
            var jobject = json as JsonObject;

            if (jobject != null)
            {
                foreach (var subProperty in jobject.Keys)
                {
                    item.Properties[subProperty] = jobject.ValueAsString(subProperty);
                }
            }
            return(item);
        }
Пример #2
0
        private LockFileItem ReadFileItem(string property, JsonValue json)
        {
            var item = new LockFileItem {
                Path = property
            };
            var jobject = json as JsonObject;

            if (jobject != null)
            {
                foreach (var subProperty in jobject.Keys)
                {
                    item.Properties[subProperty] = jobject.ValueAsString(subProperty);
                }
            }
            return(item);
        }
Пример #3
0
 private void AssertLockFileItemPath(string path, LockFileItem item)
 {
     Assert.NotNull(item);
     Assert.Equal(path, PathUtility.GetPathWithForwardSlashes(item.Path));
 }