Skip to content

Commit 27ca0a3

Browse files
author
Qiming Yuan
committed
Add test initialize to make sure the directory is empty.
1 parent d6d22e9 commit 27ca0a3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dropbox.Api.Tests/DropboxApiTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ public static void Initialize(TestContext context)
6060
AppClient = new DropboxAppClient(appKey, appSecret);
6161
}
6262

63+
[TestInitialize]
64+
public void Initialize()
65+
{
66+
var result = Client.Files.ListFolderAsync("").Result;
67+
Assert.AreEqual(result.Entries.Count, 0);
68+
}
69+
6370

6471
[TestCleanup]
6572
public void Cleanup()

0 commit comments

Comments
 (0)