Commit Graph

22 Commits

Author SHA1 Message Date
Monica S
7366cd4361 feature: Implement Dispose for types which have disposable data (#1171)
* Initial set of dispose implementations

Not handled yet:
- Discord.Net.Websocket/Entities/SocketGuild
- Discord.Net.Tests

* Refactor DiscordSocketClient init into ctor

This way we remove an IDisposableAnalyzer warning for not disposing
the client when we set the client variable.

* Dispose of clients when disposing sharded client

* Finish implementing IDisposable where appropriate

I opted to use NoWarn in the Tests project as it wasn't really necessary
considering that our tests only run once

* Tweak samples after feedback
2018-11-28 20:18:16 -05:00
Joe4evr
419c0a5b53 feature: Add a way to invoke a command specifying optional values by name (#1123)
* Add NamedArgumentTypeAttribute

* Add NamedArgumentTypeReader

* Fix superflous empty line.

* Fix logic for quoted arguments

* Throw an exception with a tailored message.

* Add a catch to wrap parsing/input errors

* Trim potential excess whitespace

* Fix an off-by-one

* Support to read an IEnumerable property

* Add a doc

* Add assertion for the collection test
2018-11-06 18:36:44 -05:00
Hawx
bbbac85c46 Update Dependencies and support NS2.0 builds (#1046)
* Update deps, fix test warnings.

* Support ns2.0

* Fix typo

* Remove ns1.1 support

* Net.Http and Net.Websockets.Client are not needed in ns2.0

* Move to net46 per volt

* Remove ns1.3 constants
2018-05-25 08:14:28 -04:00
Chris Johnston
63e670464f Add more tests for Permissions class (#967)
* Add tests for more Permissions code coverage

* Add guild tests

* Add more in-depth covering of permissions methods

* Add tests for OverwritePermissions

* Remove unknown ItemGroup tag from csproj

* Add missing Fact attributes, separate class so that it is not dependant on main test fixture

* Separate out GuildPermissions and ChannelPermissions tests from main partial Tests class because they do not need to have access to the main test fixture
2018-03-01 20:06:48 -05:00
Joe4evr
f69ef2a8ca Add API Analyzer Assembly (#906)
* Start on API analyzers

* Finish GuildAccessAnalyzer

* Update build script (will this do?)

* Correct slashes

* Extrapolate DerivesFromModuleBase() to an extension method

* Quick refactoring

* Add doc file
2018-01-13 22:54:47 -05:00
RogueException
285a0e5817 Updated deps, cleaned csprojs 2017-05-09 20:51:00 -03:00
RogueException
7b99c6003d Updated test dependencies 2017-04-26 10:35:56 -03:00
RogueException
30bb085a78 Fixed tag metapackage logic, fixed test error 2017-04-01 11:17:44 -03:00
RogueException
b5d817f171 Cleaned up csprojs, added support for tag builds. 2017-04-01 11:11:09 -03:00
RogueException
c10ebeef57 Updated xunit 2017-01-26 00:06:47 -04:00
RogueException
eb2a946dd6 Updated to 1.0.0-rc3 tooling 2017-01-25 22:27:24 -04:00
RogueException
858580a6a4 Fixed a couple issues in the Tests csproj 2017-01-24 17:30:18 -04:00
RogueException
d9802593ab Started new testbed 2017-01-24 11:55:41 -04:00
RogueException
5bdd6a7ff3 Early 1.0 REST Preview 2016-04-04 20:15:16 -03:00
Christopher F
47cbac95cc split management into server- and user-; wrote docs for server/user 2016-02-25 19:02:31 -05:00
RogueException
85a891762d Updated to Newtonsoft.Json 8.0.1 2016-01-02 04:19:08 -04:00
RogueException
83c998168f Discord.Net.Tests -> Discord.Net namespace 2015-10-22 01:48:34 -03:00
RogueException
9c9884c1ae Added WebSocketSharp support and fixed Mono issues 2015-10-01 18:27:40 -03:00
RogueException
b91f72ed3c Fixed some reference errors 2015-09-16 02:25:59 -03:00
RogueException
4529ad3d4a Refactor all the things! 2015-09-13 11:46:26 -03:00
Brandon Smith
07b8ea8450 Fixed tests 2015-08-18 02:50:16 -03:00
Brandon Smith
60f74d088a Project restructure, Added .Net Core support, Fixed some bugs 2015-08-17 18:57:44 -03:00