-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* NEW! Add ListConfigs() - Model - Call - Test - Readme * NEW! Add RecheckTorrents() - Call - Test - Readme * NEW! Add AddTorrentByUrl() - DelugeResponse - Call - Test - Constants - Readme * NEW! Add AddTorrentByUrl() - TorrentExtended - Calls - Test - Readme --------- Co-authored-by: Rafael Calafell Cladera <[email protected]>
- Loading branch information
Showing
8 changed files
with
604 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using DelugeRPCClient.Net.Models; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace DelugeRPCClient.Net.Tests | ||
{ | ||
[TestClass] | ||
public class ConfigTests | ||
{ | ||
[TestMethod] | ||
public async Task ListConfigs() | ||
{ | ||
DelugeClient client = new DelugeClient(url: Constants.DelugeUrl, password: Constants.DelugePassword); | ||
|
||
bool loginResult = await client.Login(); | ||
Assert.IsTrue(loginResult); | ||
|
||
Config configs = await client.ListConfigs(); | ||
Assert.IsNotNull(configs); | ||
|
||
bool logoutResult = await client.Logout(); | ||
Assert.IsTrue(logoutResult); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.