Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something strange had happened #1

Open
wants to merge 113 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
91ab408
Merge pull request #382 from dhei/master
dhei Oct 5, 2017
fa41ed3
Update Xamarin.Auth submodule
MatkovIvan Oct 6, 2017
f47c61b
Merge pull request #383 from MatkovIvan/master
dhei Oct 6, 2017
04eb931
Add building for 64 bit archs in iOS E2E test
MatkovIvan Oct 9, 2017
a546466
Merge pull request #385 from MatkovIvan/feature/e2e-ios-64bit
dhei Oct 11, 2017
9d7cff0
Simplify clear store in offline e2e tests
MatkovIvan Oct 11, 2017
178acd5
Ignore JsonReaderException, because 'rawResult' might not be JSON
MatkovIvan Oct 11, 2017
68f593e
Merge pull request #387 from MatkovIvan/fix/catch-non-json-result
dhei Oct 11, 2017
f3acf8a
Merge pull request #386 from MatkovIvan/fix/offline-tests
dhei Oct 11, 2017
23fbbd9
Update CHANGELOG for v4.0.2
dhei Oct 12, 2017
2f8b53b
Merge pull request #388 from Azure/update-change-log
dhei Oct 12, 2017
792ed82
remove pfx from unittest
dhei Oct 23, 2017
c0bf2aa
Merge pull request #391 from Azure/fix/remove-test-pfx
dhei Oct 23, 2017
97a1f8d
Add E2ETest libriry to build in some build configuration
MatkovIvan Jan 9, 2018
a4b1dc7
Add support for iPad devices in E2E test application
MatkovIvan Jan 9, 2018
181e401
Cast item carefully in pull action
MatkovIvan Mar 2, 2018
3dc4e1d
Add note about git submodules
MatkovIvan Mar 6, 2018
f2401a1
Update readme file
elamalani Mar 7, 2018
8f79050
Merge pull request #412 from MatkovIvan/submodules-note
elamalani Mar 7, 2018
e0a98e7
Update Readme
elamalani Apr 11, 2018
5e509bd
Merge pull request #418 from Azure/update-readme
dhei Apr 11, 2018
2def965
Merge pull request #402 from MatkovIvan/fix/sln-build-conf
dhei Jun 5, 2018
25f7e8d
Merge pull request #403 from MatkovIvan/fix/e2e-ipad
dhei Jun 5, 2018
38e0312
Merge pull request #410 from MatkovIvan/fix/invalid-cast
dhei Jun 5, 2018
9af5069
Replace xamarin component to nuget reference
MatkovIvan Jun 14, 2018
4a05323
Merge pull request #435 from MatkovIvan/fix/xamarin-component
dhei Jun 14, 2018
f32b2d8
Add parameter validation in MobileServiceSyncTable operations
MatkovIvan Jun 25, 2018
0a959cf
Add tests for parameter validation
MatkovIvan Jun 25, 2018
70d79ce
Merge pull request #440 from MatkovIvan/fix/validate-params
dhei Jun 25, 2018
2ccbc2d
Move RemoveSystemPropertiesKeepVersion into try/catch block
MatkovIvan Jun 27, 2018
9774a8f
Add null check and unit test
MatkovIvan Jun 29, 2018
0346416
Merge pull request #443 from MatkovIvan/fix/handle-removesystemprop-ex
dhei Jul 2, 2018
3b6b6e4
Update codesign and enable push on iOS
guperrot Jul 13, 2018
ece9127
Merge pull request #447 from guperrot/update-codesign
dhei Jul 13, 2018
5d790aa
Fix real literal parsing in the odata query
MatkovIvan Jul 26, 2018
e55f3e6
Add sync error if item is not found
MatkovIvan Jul 27, 2018
4611ea7
Merge pull request #448 from Azure/fix/odata-parse
dhei Jul 27, 2018
3d87789
Merge pull request #449 from Azure/fix/null-item-sync-error
dhei Jul 31, 2018
45c993a
Update 'MSBuild.Sdk.Extras' to v1.0.5
dhei Aug 7, 2018
98692e1
Merge pull request #452 from Azure/dihei/bugfix/msbuild-sdk-extras
thyeggman Aug 7, 2018
b96ade3
Treat timeout as network error
MatkovIvan Sep 6, 2018
3e42ace
Merge pull request #458 from Azure/fix/catch-timeout
dhei Nov 5, 2018
3bea8b4
Update changelog for 4.1.0
dhei Dec 4, 2018
84688fa
Merge pull request #477 from Azure/dihei/update-changelog
guperrot Dec 4, 2018
d1fe4c7
Bump versions
guperrot Dec 5, 2018
4b66c58
Update 'Microsoft.NETCore.UniversalWindowsPlatform' nuget to v5.2.6
dhei Dec 6, 2018
894efa7
Update uwp package to v5.2.6 in unit test projects
dhei Dec 6, 2018
ec979a5
Remove all unit tests projects from sln
dhei Dec 6, 2018
9fd6037
Update submodule
guperrot Dec 6, 2018
5a98a22
Merge remote-tracking branch 'origin/master' into fix/uwp-security-up…
dhei Dec 6, 2018
fe4f5a2
Merge pull request #478 from Azure/fix/uwp-security-update
dhei Dec 6, 2018
4056a2f
Update changelog
dhei Dec 7, 2018
6cc6a67
Merge pull request #479 from Azure/fix/update-changelog
dhei Dec 7, 2018
040c23a
Update nuget specs for compliance
achocron Dec 10, 2018
98b8f40
Merge pull request #480 from Azure/fix/nuget-compliance
dhei Dec 10, 2018
8dfe4e8
add delay signing of strong name to both csproj
dhei Dec 11, 2018
5595591
Merge pull request #481 from Azure/fix/strong-name
achocron Dec 11, 2018
4233e5a
Bump version and update changelog
achocron Dec 11, 2018
65f444c
Merge pull request #482 from Azure/bump-version
dhei Dec 11, 2018
084cddc
Revert "Add delay signing "
guperrot Dec 11, 2018
6ecc418
Merge pull request #483 from Azure/revert-481-fix/strong-name
guperrot Dec 11, 2018
0acba4d
Fix requests logging
MatkovIvan Dec 13, 2018
cbeae88
Revert "Remove all unit tests projects from sln"
MatkovIvan Dec 13, 2018
0f29c22
Fix e2e platform assembly name
MatkovIvan Dec 13, 2018
dcf71b3
Fix push tags verification
MatkovIvan Dec 13, 2018
3860e3f
Merge pull request #484 from Azure/fix/e2e-tests
dhei Dec 13, 2018
a2afde5
Fix done callback
MatkovIvan Jan 14, 2019
899294b
Handle login errors in e2e test app
MatkovIvan Jan 14, 2019
43ede62
Update CHANGELOG.md
MatkovIvan Jan 15, 2019
736707b
Merge pull request #488 from Azure/fix/done-callback
thyeggman Jan 23, 2019
af21eef
Update version
MatkovIvan Jan 28, 2019
7b66209
Update version
MatkovIvan Jan 28, 2019
c736c1a
Merge pull request #490 from Azure/update-version
thyeggman Jan 28, 2019
d67d9ab
Dispose files after creating
achocron Sep 5, 2019
0343cb0
Merge pull request #513 from Azure/fix/file-dispose
achocron Sep 5, 2019
970b758
Fixed content length check on MobileServiceHttpClient.cs
jcbdev Oct 2, 2019
3a7f6e0
515 - Forgot to remove old code
jcbdev Oct 2, 2019
6b14d54
Update README.md
elamalani Oct 11, 2019
abd634a
Merge pull request #518 from Azure/elamalani-patch-1
dhei Oct 11, 2019
a0f5d27
Update README.md
elamalani Nov 4, 2019
db57b02
Merge pull request #521 from Azure/elamalani-patch-1
thyeggman Nov 4, 2019
79f7482
Merge pull request #515 from jcbdev/514_AutomaticDecompression_in_lat…
MatkovIvan Nov 14, 2019
08f76fd
Fix disposing files
MatkovIvan Nov 20, 2019
1519f7e
Merge pull request #523 from Azure/fix/closing-files
MatkovIvan Nov 20, 2019
6dc0c82
Fix NSData convertation for iOS 13
Nov 19, 2019
28067fa
Add curly braces to one-line loop
Nov 20, 2019
ab654e4
Change phrasing
Nov 21, 2019
2c368ae
Apply fix to tests
Nov 21, 2019
d702a7e
Fix e2e
Nov 21, 2019
c0a8578
Revert method
Nov 21, 2019
abefdd0
Sort using
Nov 21, 2019
8e06734
Fix E2E tests for push
MatkovIvan Nov 22, 2019
a959dce
Merge pull request #524 from Azure/fix/ios-13-push
MatkovIvan Nov 22, 2019
118d78c
Try to fix UWP regression
Nov 22, 2019
edcdc4a
Rewrite the fix
Nov 22, 2019
a3c56fd
To last
Nov 22, 2019
33aa478
address feedback
Nov 25, 2019
8bb9e00
Address feedback
Nov 26, 2019
95ecdbd
To last
Nov 26, 2019
b03b667
Private method
Nov 26, 2019
09ee5bb
remove identity
Nov 26, 2019
e41b0da
CHANGELOG
Nov 27, 2019
cea17cf
Rephraze
Nov 27, 2019
d613dbe
Merge pull request #526 from Azure/try-get-decompression-header
dhei Nov 27, 2019
9276349
Update CHANGELOG.md
MatkovIvan Dec 3, 2019
457e488
Merge pull request #527 from Azure/fix/changelog
MatkovIvan Dec 3, 2019
0319e25
Update supported versions
MatkovIvan May 18, 2020
24b6d02
Merge pull request #541 from Azure/fix/readme-versions
MatkovIvan May 19, 2020
7119d7e
.NET Standard 2.0 / v4.2.0 version of the library. (#554)
adrianhall Nov 3, 2020
f8a78ea
Remove the ns2 branch and use a better preview tag (#555)
mattleibow Nov 11, 2020
cf6f1e3
Compile Against Android 10 as well :) (#557)
jamesmontemagno Nov 25, 2020
f07fcbe
Enable API 30 Tests on Android (#558)
jamesmontemagno Nov 26, 2020
e156f55
Corrected links in README (#566)
adrianhall Sep 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add tests for parameter validation
MatkovIvan committed Jun 25, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 0a959cf4a0632ab8a64667a0583beb24468abec0
Original file line number Diff line number Diff line change
@@ -1418,6 +1418,36 @@ public async Task ToEnumerableAsync_ParsesOData_WhenRawQueryIsProvided()
Assert.AreEqual(odata, odata2);
}

[AsyncTestMethod]
public async Task InsertAsync_Throws_WhenObjectIsNull()
{
var service = new MobileServiceClient(MobileAppUriValidator.DummyMobileApp);
await service.SyncContext.InitializeAsync(new MobileServiceLocalStoreMock(), new MobileServiceSyncHandler());
var table = service.GetSyncTable<StringIdType>();

await ThrowsAsync<ArgumentNullException>(() => table.InsertAsync(null));
}

[AsyncTestMethod]
public async Task UpdateAsync_Throws_WhenObjectIsNull()
{
var service = new MobileServiceClient(MobileAppUriValidator.DummyMobileApp);
await service.SyncContext.InitializeAsync(new MobileServiceLocalStoreMock(), new MobileServiceSyncHandler());
var table = service.GetSyncTable<StringIdType>();

await ThrowsAsync<ArgumentNullException>(() => table.UpdateAsync(null));
}

[AsyncTestMethod]
public async Task DeleteAsync_Throws_WhenObjectIsNull()
{
var service = new MobileServiceClient(MobileAppUriValidator.DummyMobileApp);
await service.SyncContext.InitializeAsync(new MobileServiceLocalStoreMock(), new MobileServiceSyncHandler());
var table = service.GetSyncTable<StringIdType>();

await ThrowsAsync<ArgumentNullException>(() => table.DeleteAsync(null));
}

/// <summary>
/// Tests that the second operation on the same item will cancel one of the two operations how ever other operations between the two (on other items) are not reordered
/// </summary>