File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Src/Notion.Client/Models/File
Test/Notion.IntegrationTests Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ public abstract class FileObject : IPageIcon
12
12
[ JsonProperty ( "caption" ) ]
13
13
public IEnumerable < RichTextBase > Caption { get ; set ; }
14
14
15
+ /// <summary>
16
+ /// The name of the file block, as shown in the Notion UI. Note that the UI may auto-append .pdf or other extensions.
17
+ /// </summary>
15
18
[ JsonProperty ( "name" ) ]
16
19
public string Name { get ; set ; }
17
20
Original file line number Diff line number Diff line change @@ -437,7 +437,10 @@ private static IEnumerable<object[]> BlockData()
437
437
fileBlock . HasChildren . Should ( ) . BeFalse ( ) ;
438
438
439
439
var file = fileBlock . File . Should ( ) . NotBeNull ( ) . And . BeOfType < ExternalFile > ( ) . Subject ;
440
+
441
+ // NOTE: The name of the file block, as shown in the Notion UI. Note that the UI may auto-append .pdf or other extensions.
440
442
file . Name . Should ( ) . Be ( "Test file name.jpg" ) ;
443
+
441
444
file . External . Should ( ) . NotBeNull ( ) ;
442
445
file . External . Url . Should ( ) . Be ( "https://www.iaspaper.net/wp-content/uploads/2017/09/TNEA-Online-Application.jpg" ) ;
443
446
file . Caption . Should ( ) . NotBeNull ( ) . And . ContainSingle ( )
You can’t perform that action at this time.
0 commit comments