Commit graph

132 commits

Author SHA1 Message Date
JustArchi
d9e3496e5e Optimize csprojs and STD plugin publishing
thanks to @Vital7 for the idea
2020-11-21 18:09:05 +01:00
JustArchi
a90b49ecd8 Correct tests 2020-11-14 22:41:02 +01:00
JustArchi
e82560259b Final code cleanup 2020-11-14 22:37:00 +01:00
dependabot-preview[bot]
2be4a43425 Bump Microsoft.NET.Test.Sdk from 16.7.1 to 16.8.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.7.1 to 16.8.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.7.1...v16.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-09 21:06:14 +00:00
JustArchi
25e549b7e2 Code cleanup after #2004 2020-10-21 18:48:13 +02:00
Sebastian Göls
1f8b68f5ee
Implement #852 (#2004)
* Update Actions.cs, Bot.cs, and BotConfig.cs

* First round of refactoring

* Check all badge pages

* Update Bot.cs

* Make sure multiple pages of badges work with foil badges and Make item selection algorithm work with all kinds of amount values we could get from Valve

* Change order of params in Actions.SendInventory(...), Cache amount of cards for game ids, Count card elements on page when fetching card count per game, Calculate items to send for all games in parallel

* Add unit tests

* Make sure only one real app id and one asset type are present while computing cards to send and Test it

* Update ArchiWebHandler.cs

* Update Bot.cs

* Fix iteration over badge pages

* Update Bot.cs

* Make stackable item stacks smaller if possible

* Simplify code based on changing stack size of stackable items and Adapt tests

* Consider only cards of the same rarity to be of one set and Add handling of already crafted level 5 badges

* Implement feedback

* Update Bot.cs

* Update Bot.cs

* Implement feedback from review

* Adapt tests

* Improve XPath efficiency

* Check real result for additional values in unit tests

* Implement feedback

* Add additional test combining classID, type and rarity

* Make collections readonly wherever you can

* Optimize misc. code and Add SetTypesToComplete to BotConfig

* Throw exception if we have more card types than cards per set

* Remove SendSetsOnCompleted and Make CompleteTypesToSend empty per default

* Fix existing unit tests and add new ones due to new exception

* Please nitpicky Archi

* Update Bot.cs

* Change expected exception type

* Make appID constants local

* Update Bot.cs and BotConfig.cs

* Do as JetBrains Rider says

* Only fetch card count for badge if we have cards for it

* Improve naming and fix handling of URIs for foil badges

* Add Bot.LoadCardsPerSet(...), Bot.GetItemsForFullSets(...) and Trading.GetInventorySets(...) to public API

* Let AWH do its job

* Make Bot.GetPossiblyCompletedBadgeAppIDs() part of public API as well
2020-10-21 18:41:20 +02:00
JustArchi
6764313f66 Misc 2020-09-19 01:49:00 +02:00
dependabot-preview[bot]
2cc6b1af11 Bump Microsoft.NET.Test.Sdk from 16.7.0 to 16.7.1
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.7.0 to 16.7.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.7.0...v16.7.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-21 01:29:28 +00:00
JustArchi
06b1b8deeb Misc trade logging enhancements 2020-08-11 11:34:32 +02:00
dependabot-preview[bot]
e7195b0e68 Bump Microsoft.NET.Test.Sdk from 16.6.1 to 16.7.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.6.1 to 16.7.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.6.1...v16.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-06 12:34:46 +00:00
dependabot-preview[bot]
04afb5b891 Bump MSTest.TestFramework from 2.1.1 to 2.1.2
Bumps [MSTest.TestFramework](https://github.com/microsoft/testfx) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/microsoft/testfx/releases)
- [Commits](https://github.com/microsoft/testfx/compare/v2.1.1...v2.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-08 12:16:16 +00:00
dependabot-preview[bot]
a7442e61b1 Bump MSTest.TestAdapter from 2.1.1 to 2.1.2
Bumps [MSTest.TestAdapter](https://github.com/microsoft/testfx) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/microsoft/testfx/releases)
- [Commits](https://github.com/microsoft/testfx/compare/v2.1.1...v2.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-08 11:53:38 +00:00
JustArchi
80daf47f60 Unify common ASF csproj properties under Directory.Build.props 2020-05-23 20:11:31 +02:00
dependabot-preview[bot]
b1a54fe9db Bump Microsoft.NET.Test.Sdk from 16.6.0 to 16.6.1
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.6.0 to 16.6.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.6.0...v16.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-24 10:16:09 +00:00
dependabot-preview[bot]
6e42d213df Bump Microsoft.NET.Test.Sdk from 16.5.0 to 16.6.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.5.0 to 16.6.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.5.0...v16.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-21 01:22:15 +00:00
JustArchi
df8044ba74 Use RollForward policy 2020-04-18 15:23:07 +02:00
JustArchi
1e87341877 Small cleanup 2020-04-02 17:16:05 +02:00
dependabot-preview[bot]
b4de9179a1 Bump MSTest.TestFramework from 2.1.0 to 2.1.1
Bumps [MSTest.TestFramework](https://github.com/microsoft/testfx) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/microsoft/testfx/releases)
- [Commits](https://github.com/microsoft/testfx/compare/v2.1.0...v2.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-02 01:26:06 +00:00
dependabot-preview[bot]
7e271986c7 Bump MSTest.TestAdapter from 2.1.0 to 2.1.1
Bumps [MSTest.TestAdapter](https://github.com/microsoft/testfx) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/microsoft/testfx/releases)
- [Commits](https://github.com/microsoft/testfx/compare/v2.1.0...v2.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-01 09:23:16 +00:00
JustArchi
2ac5a9c5f9 Actually expose tags in Asset
@Vital7 you forgot about this too 😀
2020-03-05 23:57:51 +01:00
JustArchi
c38ce811f8 Add AssetID as the last missing property to parse in active trade offers 2020-03-05 22:59:11 +01:00
JustArchi
0ed5092e97 Add missing parsing of descriptions in active trade offers
@Vital7 you completely broke that part, since you've removed parsing of tags without adding any new logic for them, good thing R# started suggesting me to convert those 3 tags-generated properties to const :bite:
2020-03-05 21:28:10 +01:00
dependabot-preview[bot]
d1ed423d10 Bump Microsoft.NET.Test.Sdk from 16.4.0 to 16.5.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.4.0 to 16.5.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.4.0...v16.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-05 08:56:07 +00:00
dependabot-preview[bot]
0d157a9bc4 Bump MSTest.TestAdapter from 2.0.0 to 2.1.0
Bumps [MSTest.TestAdapter](https://github.com/microsoft/testfx) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/microsoft/testfx/releases)
- [Commits](https://github.com/microsoft/testfx/compare/v2.0.0...v2.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 12:00:30 +00:00
dependabot-preview[bot]
7de88c251f Bump MSTest.TestFramework from 2.0.0 to 2.1.0
Bumps [MSTest.TestFramework](https://github.com/microsoft/testfx) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/microsoft/testfx/releases)
- [Commits](https://github.com/microsoft/testfx/compare/v2.0.0...v2.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 11:39:23 +00:00
Łukasz Domeradzki
09234a3db3
Update ArchiSteamFarm.Tests.csproj 2020-02-02 14:08:01 +01:00
JustArchi
0370168b02 Happy new year 2020-02-01 23:33:35 +01:00
JustArchi
0823784917 Correct tests 2020-02-01 22:45:44 +01:00
Łukasz Domeradzki
44e062bce0
.NET Core 3.1 (#1535)
* .NET Core 3.1

* Misc
2019-12-04 18:33:51 +01:00
JustArchi
e7b51722b3 Run tests in parallel 2019-11-17 12:34:15 +01:00
Łukasz Domeradzki
2605df8ac5
Enable Linux in travis again (#1491)
* Testing

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Keep trying

* Keep trying

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml
2019-11-07 21:01:14 +01:00
dependabot-preview[bot]
7e42808cd2 Bump Microsoft.NET.Test.Sdk from 16.3.0 to 16.4.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.3.0 to 16.4.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.3...v16.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-06 11:10:23 +00:00
JustArchi
97f67711ee Misc 2019-10-05 22:35:39 +02:00
Łukasz Domeradzki
5b4867c387
Update ASF to .NET Core 3.0 (#1427)
* Initial bump to .net core 3.0

* Update cc.sh

* Update appveyor.yml

* Update ArchiSteamFarm.csproj

* Update appveyor.yml

* Update .travis.yml

* Build corrections

* Cleanup

* Update .travis.yml

* Don't publish trimmed for now

* Update ArchiSteamFarm.csproj
2019-09-26 20:28:25 +02:00
dependabot-preview[bot]
f01f9c8565 Bump Microsoft.NET.Test.Sdk from 16.3.0-preview-20190828-03 to 16.3.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.3.0-preview-20190828-03 to 16.3.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.3.0-preview-20190828-03...v16.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-19 16:43:32 +00:00
JustArchi
5c98d90ae6 Update ArchiSteamFarm.Tests.csproj 2019-09-09 01:09:04 +02:00
dependabot-preview[bot]
6ee3da39c8 Bump Microsoft.NET.Test.Sdk
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.3.0-preview-20190808-03 to 16.3.0-preview-20190828-03.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.3.0-preview-20190808-03...v16.3.0-preview-20190828-03)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-08 22:35:00 +00:00
JustArchi
332a2070ed Packages update 2019-08-29 14:10:17 +02:00
Łukasz Domeradzki
38e227b298
Bump to .NET Framework 4.8 (#1210) 2019-08-01 23:31:07 +02:00
dependabot-preview[bot]
da8e7c7b94 Bump Microsoft.NET.Test.Sdk from 16.1.1 to 16.2.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.1.1 to 16.2.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-27 06:48:39 +00:00
dependabot-preview[bot]
a93262aa9d Bump ConfigureAwaitChecker.Analyzer from 3.0.0 to 4.0.0
Bumps [ConfigureAwaitChecker.Analyzer](https://github.com/cincuranet/ConfigureAwaitChecker) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/cincuranet/ConfigureAwaitChecker/releases)
- [Commits](https://github.com/cincuranet/ConfigureAwaitChecker/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-13 16:11:36 +00:00
dependabot-preview[bot]
c07bed7df1 Bump Microsoft.NET.Test.Sdk from 16.1.0 to 16.1.1
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.1.0 to 16.1.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.1.0...v16.1.1)
2019-05-30 06:29:30 +00:00
dependabot[bot]
2139f75ed3 Bump Microsoft.NET.Test.Sdk from 16.0.1 to 16.1.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.0.1 to 16.1.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.0.1...v16.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-09 09:30:09 +00:00
JustArchi
331dee149e Misc 2019-04-30 15:34:11 +02:00
JustArchi
e3b2b65935 Packages cleanup 2019-04-30 14:56:09 +02:00
dependabot[bot]
7dc9a76768 Bump JetBrains.Annotations from 2018.3.0 to 2019.1.1
Bumps JetBrains.Annotations from 2018.3.0 to 2019.1.1.

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-27 10:46:45 +00:00
dependabot[bot]
3ec9c05252 Bump Microsoft.NET.Test.Sdk from 16.0.0 to 16.0.1
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.0.0 to 16.0.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-05 01:25:57 +00:00
dependabot[bot]
1a763a56ea Bump Microsoft.NET.Test.Sdk from 16.0.0-preview-20190203-03 to 16.0.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.0.0-preview-20190203-03 to 16.0.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-01 22:16:09 +00:00
JustArchi
b677ba8202 Code/style cleanup 2019-02-16 17:34:17 +01:00
dependabot[bot]
7c8086d200 Bump Microsoft.NET.Test.Sdk
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.0.0-preview-20190124-02 to 16.0.0-preview-20190203-03.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.0.0-preview-20190124-02...v16.0.0-preview-20190203-03)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-04 01:44:14 +00:00