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); }
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); }
private void AssertLockFileItemPath(string path, LockFileItem item) { Assert.NotNull(item); Assert.Equal(path, PathUtility.GetPathWithForwardSlashes(item.Path)); }