コード例 #1
0
ファイル: LockFileReader.cs プロジェクト: yossidev/dnx
        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));
 }