@@ -289,7 +289,7 @@ public void Rename_Succeeds(NodeType nodeType)
289289
290290 [ Theory ]
291291 [ JsonInputsDataAttribute ( "FileLink" ) ]
292- public void GetNodeFromLink_Browse_Succeeds ( string fileLink )
292+ public void GetNodeFromLink_WithFileAttributes_Succeeds ( string fileLink )
293293 {
294294 var node = Context . Client . GetNodeFromLink ( new Uri ( fileLink ) ) ;
295295
@@ -302,6 +302,21 @@ public void GetNodeFromLink_Browse_Succeeds(string fileLink)
302302 Assert . Equal ( 2 , node . FileAttributes . Length ) ;
303303 }
304304
305+ [ Theory ]
306+ [ JsonInputsDataAttribute ( "ZipFileLink" ) ]
307+ public void GetNodeFromLink_WithoutFileAttributes_Succeeds ( string fileLink )
308+ {
309+ var node = Context . Client . GetNodeFromLink ( new Uri ( fileLink ) ) ;
310+
311+ Assert . NotNull ( node ) ;
312+ Assert . Equal ( "SampleFile.zip" , node . Name ) ;
313+ Assert . Equal ( AuthenticatedTestContext . Inputs . SampleZipFile . Size , node . Size ) ;
314+ Assert . Equal ( AuthenticatedTestContext . Inputs . SampleZipFile . ModificationDate , node . ModificationDate ) ;
315+ Assert . Null ( node . CreationDate ) ;
316+ Assert . Equal ( AuthenticatedTestContext . Inputs . SampleZipFile . Fingerprint , node . Fingerprint ) ;
317+ Assert . Empty ( node . FileAttributes ) ;
318+ }
319+
305320 [ Theory ]
306321 [ JsonInputsDataAttribute ( new object [ ] { null } , new string [ ] { "FolderLink" } ) ]
307322 [ JsonInputsDataAttribute ( new object [ ] { "/file/SELECTED_FILE_NODE_ID" } , new string [ ] { "FolderLink" } ) ]
@@ -330,7 +345,7 @@ public void GetNodesFromLink_Succeeds(string suffix, string folderLink)
330345 Assert . Equal ( AuthenticatedTestContext . Inputs . SharedFolder . CreationDate , node . CreationDate ) ;
331346 Assert . Null ( node . ModificationDate ) ;
332347 Assert . Null ( node . Fingerprint ) ;
333- Assert . Null ( node . FileAttributes ) ;
348+ Assert . Empty ( node . FileAttributes ) ;
334349
335350 node = Assert . Single ( nodes , x => x . Name == "SharedSubFolder" ) ;
336351 Assert . Equal ( NodeType . Directory , node . Type ) ;
@@ -340,7 +355,7 @@ public void GetNodesFromLink_Succeeds(string suffix, string folderLink)
340355 Assert . Equal ( AuthenticatedTestContext . Inputs . SharedSubFolder . CreationDate , node . CreationDate ) ;
341356 Assert . Null ( node . ModificationDate ) ;
342357 Assert . Null ( node . Fingerprint ) ;
343- Assert . Null ( node . FileAttributes ) ;
358+ Assert . Empty ( node . FileAttributes ) ;
344359
345360 node = Assert . Single ( nodes , x => x . Name == "SharedFileUpSideDown.jpg" ) ;
346361 Assert . Equal ( NodeType . File , node . Type ) ;
0 commit comments