Commit Graph

25 Commits

Author SHA1 Message Date
Brendan Forster 287861e4a7 rewrite the setup of responses to use a standard helper function (#2177) 2020-04-14 11:30:15 -03:00
Brendan Forster 4b0e7255b1 remove all usages of TaskFactory in test suite (#2164) 2020-03-31 16:57:16 -03:00
Brendan Forster 5de5258257 add attribute for tracking preview usage in the codebase (#2128) 2020-03-07 10:40:15 -04:00
Ryan Gribble 3c818934b8 Release v0.24 - A Sight For Sore Eyes (#1539)
* Add release notes and bump version to 0.24

* run "build FormatCode" to fix up whitespace/formatting issues

* Fix failing Ssh key tests due to "validation exception".  This key must be in use on github (under another user, most likely from these tests failing).  Changed to a new SSH key and tweaked tests to reduce chance of a key being created and not destroyed

* Assignee and Assignees cant both be specified on NewIssue.  We missed this one in the PR.  Marked Assignee as [Obsolete] and fixed tests to use Assignees

* Fix a couple of Reactions tests that were calling the wrong client methods

* Fix timeline tests - looks like the response class has changed shape a bit, it now has an Issue object in the payload and Id field isnt present (leaving Id field there in case other timeline events do use it)

* Fix some following tests that require the test user to follow more than 1 other user

* Unskip these Event tests now because apparently they work!

* add breaking changes notes

* Update ApiErrorMessageSafe to return null for empty and whitespace strings (#1540)

* return null if ApiError.Message is empty or whitespace

* Uncomment test, which now passes

* update release notes to include PR1540

* Add "Bot" AccountType, was causing a deserialization exception when running the integration test "SearchForExcludedLanguage" (#1541)

* Update to include PR1541

* add bullets to make release notes easier to read

* markup additional code mentions in notes

* Fix grammar

fields => field
2017-01-17 18:56:55 +10:00
Martin Scholz 72e30a7f90 Add reactions to issue, commit comment and review payload (#1405)
* add reactions to issue response payload

* add reactions to commit comment payload

* add reactions to review comment payload

* create tests for issue client

* tests for commitcomment client

* tests for pull request review comment

* change observable tests

* simplify strings

* remove unnecessary clients

* change integration tests to retrieve all reaction types

* create integration test for issue comment client

* fix merge conflicts

* fix merge conflicts

* gets tests passing again

* fix some reaction integration tests

* Fixup unit tests wth preview accepts header
Also applied preview header to a couple of repositoryId based calls that were added by another PR

* Fixup unit tests wth preview accepts header
Also applied preview header to a couple of repositoryId based calls that were added by another PR

* Rework reaction payload tests for IssueComments to handle Get, GetAllForIssue and GetAllForRepository calls

* [WIP] reaction payload tests

* Rework reaction payload tests for IssueComments to handle Get, GetAllForIssue and GetAllForRepository calls

* Rework reaction payload tests for Issues client

* Rework reaction payload tests for PullRequestReviews client

* Rework reaction payload tests for CommitComments client

* Revert "[WIP] reaction payload tests"

This reverts commit a6179b0f21a3ddfe36bfd3ae5eafae0e69b52252.
2016-07-08 20:29:08 +10:00
aedampir@gmail.com bc6a0ce88d added new unit tests 2016-06-14 18:51:19 +07:00
Brendan Forster dfebfe31b6 Add ApiOption overloads to IIssuesClient and IObservableIssuesClient (#1274) 2016-06-02 11:21:30 +02:00
aedampir@gmail.com 36c08248fa New convention test was added. Now each "TheCtor" class must have "EnsuresNonNullArguments" method were throwing of ArgumentNullException from client constructor class should be tested.
All unused "using" directives were removed.
2016-04-18 12:51:35 +07:00
Prayank Mathur 5173adeffb Some more changes in tests 2016-03-29 17:13:44 +05:30
Prayank Mathur 55f4e72c2d Changed function names in unit tests 2016-03-29 16:59:55 +05:30
Prayank Mathur 63bd1226c9 Resolved conflicts 2016-03-29 16:48:51 +05:30
Prayank Mathur 2c167bfb70 Fixes 2016-03-25 12:01:18 +05:30
Prayank Mathur 171b3c520a Implement Lock/Unlock Issue 2016-03-25 11:51:42 +05:30
Prayank Mathur db8738b675 Corrected TheUpdateMethod.EnsureArgumentsNotNull() 2016-03-17 16:38:42 +05:30
Mordechai Zuber e1ea7c30ad fix expected exceptions 2015-05-19 11:51:27 +03:00
Mordechai Zuber b36e133049 O-Issues, O-Milestones, O-OrgMembers 2015-05-19 11:32:10 +03:00
Henrik Andersson 189ae42c3a Update tests 2015-03-24 00:12:54 +10:00
Haacked ff3506f3e8 Make some of the IResponse properties readonly 2015-01-04 19:13:32 -08:00
Haacked 4c8bab20eb IApiResponse no longer inherits IResponse 2015-01-04 18:58:53 -08:00
Haacked 09d5c236a4 Rename IResponse<T> to IApiResponse 2015-01-04 18:33:48 -08:00
Haacked f3d4b751cc Make Issue readonly and fix a bug
Found a bug in which we were using Name when we should be using Login.
2015-01-03 20:22:31 -08:00
Paul Betts d731f1bd97 More jacked up tests 2014-04-30 21:47:34 -07:00
Peter MacNaughton b8c18e2da6 Fixing some unit tests that were not doing
any assertions.
Adding Received() where it was missing.
The majority of these instances were unawaited AssertEx.Throws
They are now all either awaited or replaced with Assert.Throw
Assert.Throw was used when possible and when not an option
AssertEx.Throw was awaited.
2014-02-09 01:12:31 -07:00
Haacked 3c3febaf77 Remove use of .Wait() from tests 2013-11-05 16:02:33 -08:00
Brandon Linton fa65ce15b2 Adding ObservableIssuesClient unit tests 2013-11-02 23:30:09 -04:00