Commit graph

39 commits

Author SHA1 Message Date
Andres G. Aragoneses d6887a70f1 Tests: add NUnit support
What's an open source project that cannot be
tested in an open source platform? The best
open source .NET IDE that works in Linux
(MonoDevelop) doesn't have support for
VisualStudio Testing framework, but it has
support for NUnit.

By abstracting a bit the TLSharp.Tests assembly
we can have two different wrappers, one for
NUnit tests and other for VisualStudio tests,
so no one can be left behind.
2016-11-09 00:50:34 +08:00
Andres G. Aragoneses adef68b747 SendNumberTest: remove the + from the phone number in app.config
NumberToAuthenticate works fine for the AuthTest if we put
a "+" before our international prefix when writing the number,
but because this test compares the numbers we got from the
Contacts List with the one in app.config, it could not find it
due to this prefix. Let's rather be prepared for that.
2016-11-03 01:33:56 +08:00
Andres G. Aragoneses 738a84937e SendMessageTest: rather crash with meaningful exception
Rather crash with meaningful exception than not passing the
test and only giving a hint when debugging.
2016-11-03 01:31:47 +08:00
Andres G. Aragoneses 9986270bed Fix typo "CpdeToAuthenticate" -> CodeToAuthenticate
And let's use nameof() in all cases so this doesn't happen again.
2016-11-01 01:33:26 +08:00
Andres G. Aragoneses f062c0a7a1 Friendlier exceptions for Auth testing
This change also lets you write the auth code in the
app.config file without the need to recompile/debug.
2016-10-31 00:17:03 +08:00
Ilya P b06f8a8e11 Added File-Migrate feature 2016-10-29 11:47:18 +03:00
Afshin Arani bc24dbfd65 Update TLSharpTests.cs 2016-10-26 20:15:33 +03:30
Andres G. Aragoneses 3639ae3e88 Always include an innerException when re-throwing
Hiding the previous thrown exception is a bad practice.
2016-10-24 14:58:04 +08:00
Andres G. Aragoneses 0e32291d11 Tests: show a more meaningful exception when running for 1st time
Instead of throwing a System.FormatException, capture the URL
thrown by the library itself so that the developer configures
the API_ID and API_HASH and places them in the app.config file.
2016-10-23 23:23:10 +08:00
Ilya P 96c63b3f66 Merge branch 'master' of https://github.com/sochix/TLSharp 2016-10-23 14:12:56 +03:00
Ilya P b823c34078 Move upload helper to helpers 2016-10-23 14:12:34 +03:00
Ilya P 6d106b4425 Merge fix 2016-10-23 14:10:54 +03:00
Ilya P a53800ba16 Merge remote-tracking branch 'refs/remotes/origin/master' into pr/258
# Conflicts:
#	TLSharp.Tests/TLSharpTests.cs
2016-10-23 14:09:16 +03:00
Andres G. Aragoneses 1719fd9f19 Tests: avoid NullReferenceException
Instead of throwing cryptic NullReferenceException
when this test fails, let's give more information
about what is going on, to the developer.
2016-10-23 18:44:37 +08:00
Ilya P f6ad50ce94 - added getFile method 2016-10-23 13:29:18 +03:00
Andres G. Aragoneses bbc84f0748 Tests: put API settings also in app.config
For these tests to pass you not only needed to change
the app.config file but the .cs file as well with your
API settings (Hash & ID).

So let's put everything of them in the app.config so
it's easier to discover.
2016-10-23 18:11:26 +08:00
Ilya P 1d6035aeb7 - fix file Uploader
- refactor file uploader
- added test for file uploading
2016-10-23 13:02:44 +03:00
Andres G. Aragoneses d96daec6d1 Tests: remove unneeded usings 2016-10-23 17:00:52 +08:00
Ilya P 066e9cacfe - Updated README 2016-10-11 17:31:30 +03:00
Ilya P 0351c0f1df Add AsyncSuffix to methods 2016-10-11 16:32:38 +03:00
Afshin Arani 6af7c66a81 Redesign Everything 2016-09-24 17:08:26 +03:30
Afshin Arani f083fb9b30 Remove Test Project 2016-09-22 16:59:28 +03:30
steavy29 78e3a7794f Merge fix. 2016-09-14 14:57:07 +03:00
Ilya Pirozhenko 8411235fe1 Merge branch 'pr/203'
Conflicts:
	README.md
	TLSharp.Core/TelegramClient.cs
	TLSharp.Tests/TLSharpTests.cs
2016-09-13 22:24:00 +03:00
Ilya Pirozhenko 148828edc1 Merge branch 'pr/198'
Conflicts:
	TLSharp.Tests/TLSharpTests.cs
2016-09-13 22:17:31 +03:00
steavy29 1c31794751 Added GetUpdatesDifference and GetUpdatesState functions implementations. 2016-09-13 13:34:32 +03:00
steavy29 ccf2008404 Added implementation of AddChatUser/DeleteChatUser/LeaveChat 2016-09-09 19:56:47 +03:00
steavy29 98f014a49d Implemented CreateChat. Fixed MessageServiceConstructor - migrated it from api layer level 16 to 23. 2016-09-08 14:35:25 +03:00
steavy29 c48109eee3 Added SignUp implementation. 2016-09-06 18:37:05 +03:00
Ilya Pirozhenko b869a4f617 Merge pull request #156 from Starli0n/master
Add GetFile() method
2016-06-27 17:23:37 +03:00
Jesus 6365297aaf UserFullConstructor : UserFull no accepts self id.
Added test method to GetUserFull
Added info to README.md
2016-05-18 12:55:22 +02:00
Starli0n ee4fbef8a9 Add GetFile() method 2016-05-17 14:22:14 +02:00
ahmadali shafiee 23404f751d argument change
it looks better
2016-04-21 15:30:40 +04:30
ahmadali shafiee 4a44709150 get apiHash and apiId in the constructor 2016-04-18 15:35:30 +04:30
ahmadali shafiee 504b63a6d7 formatting code (ctrl + k + d) 2016-04-18 15:20:57 +04:30
Ilya Pirozhneko 103e41fb2b Updates 2016-02-07 13:28:41 +03:00
Ilya Pirozhneko 84cbe0afc8 Updated readme 2016-02-04 17:05:48 +03:00
Ilya Pirozhneko 69700fdad0 Small improvements 2016-02-04 16:04:31 +03:00
Ilya Pirozhneko 9cc6942088 Added tests and fixes to SendMediaFunctionality and GetHistory 2016-02-03 22:36:39 +03:00
Renamed from TLSharp.Tests/NotificatioClientTests.cs (Browse further)