diff options
author | therzok <marius.ungureanu@xamarin.com> | 2019-12-21 00:28:11 +0300 |
---|---|---|
committer | therzok <marius.ungureanu@xamarin.com> | 2019-12-23 16:26:05 +0300 |
commit | 51d26083010e9b8d7005834a46748cc932cd69ca (patch) | |
tree | 3a7536e714d58a4996438bddaff5366ab07c739a /main/src/addins/MonoDevelop.UnitTesting | |
parent | d04130684ea68f6ef7686ab107f7eefecc6d9d17 (diff) |
Switch to Task.CompletedTask where applicable
Diffstat (limited to 'main/src/addins/MonoDevelop.UnitTesting')
-rw-r--r-- | main/src/addins/MonoDevelop.UnitTesting/Services/UnitTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.UnitTesting/Services/UnitTest.cs b/main/src/addins/MonoDevelop.UnitTesting/Services/UnitTest.cs index da956f00ae..8a7bcce3bc 100644 --- a/main/src/addins/MonoDevelop.UnitTesting/Services/UnitTest.cs +++ b/main/src/addins/MonoDevelop.UnitTesting/Services/UnitTest.cs @@ -286,7 +286,7 @@ namespace MonoDevelop.UnitTesting // Forces the reloading of tests, if they have changed public virtual Task Refresh (CancellationToken ct) { - return Task.FromResult (0); + return Task.CompletedTask; } public UnitTestResult Run (TestContext testContext) @@ -336,7 +336,7 @@ namespace MonoDevelop.UnitTesting { if (parent != null) return parent.Build (); - return Task.FromResult (true); + return Task.CompletedTask; } public void RegisterResult (TestContext context, UnitTestResult result) |