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

Shorten long lines in VB REVIEW (3rd) AFTER #12489 DRAFT #12118

Draft
wants to merge 914 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
914 commits
Select commit Hold shift + click to select a range
8eefc0d
Simplify Tests and reuse commin code
paul1956 Oct 30, 2024
2df4379
Merge branch 'master' into Add-Network-Download-Tests-Only-Review-1st
paul1956 Oct 31, 2024
e3e58f0
Merge
paul1956 Oct 31, 2024
49b2cda
Update tests to use validation functions
paul1956 Oct 31, 2024
9cbddc8
Add missing tests and cleanup
paul1956 Oct 31, 2024
edb8c1d
Move TestingConnectionTimeout to prevent merge issues
paul1956 Oct 31, 2024
e6b1bbb
remove extra blank lines
paul1956 Oct 31, 2024
5769f43
Fix merge conflicts
paul1956 Oct 31, 2024
7b80e96
Fix merge conlicts
paul1956 Oct 31, 2024
7b650d8
merge
paul1956 Oct 31, 2024
a1363c7
Code cleanup
paul1956 Oct 31, 2024
78099e6
Shorten comments
paul1956 Oct 31, 2024
7e20850
Fix long lines
paul1956 Oct 31, 2024
e8b825d
Cleanup
paul1956 Oct 31, 2024
00337e1
Code cleanup
paul1956 Oct 31, 2024
3f83e78
remove m_
paul1956 Oct 31, 2024
5ebd70f
Shorten some long lines
paul1956 Oct 31, 2024
d06550a
Remove blank line
paul1956 Oct 31, 2024
6e5309d
Fix XM: Comment
paul1956 Oct 31, 2024
bfc6571
Fix formatting
paul1956 Oct 31, 2024
fc14585
Fix formatting
paul1956 Oct 31, 2024
5feeaed
Merge
paul1956 Oct 31, 2024
81505f1
Merge branch 'master' into Add-Network-Download-Tests-Only-Review-1st
paul1956 Nov 3, 2024
668c961
Merge branch 'master' into FixIssue#9807-2nd
paul1956 Nov 3, 2024
156ffed
Merge branch 'FixIssue#9807-2nd' into Shorten-Long-Lines-in-VB-Review…
paul1956 Nov 3, 2024
92bf9e2
Merge branch 'Add-Network-Download-Tests-Only-Review-1st' into FixIss…
paul1956 Nov 3, 2024
3396bd2
Merge branch 'FixIssue#9807-2nd' into Shorten-Long-Lines-in-VB-Review…
paul1956 Nov 3, 2024
fbf2bfc
Shorten a some long lines
paul1956 Nov 3, 2024
d503566
Merge branch 'master' into Add-Network-Download-Tests-Only-Review-1st
paul1956 Nov 5, 2024
456fe40
[main] Update dependencies from dotnet/runtime (#12419)
dotnet-maestro[bot] Nov 3, 2024
c67ba0b
Issue 12353 fix detach context menu strip memory leak (#12399)
LeafShi1 Nov 4, 2024
8287886
Update InitializeComponent() template (#12398)
LeafShi1 Nov 4, 2024
c116319
Update the logic about the attribute [RefreshProperties(RefreshProper…
LeafShi1 Nov 4, 2024
4c44c4a
add vs-feedback info to the designer readme (#12414)
Tanya-Solyanik Nov 4, 2024
1c9be40
Add code coverage for ToolStripComboBox.ToolStripComboBoxControl.Tool…
Zheng-Li01 Nov 5, 2024
1203e7e
[main] Update dependencies from dotnet/runtime (#12422)
dotnet-maestro[bot] Nov 5, 2024
39e063e
[main] Update dependencies from dotnet/arcade (#12423)
dotnet-maestro[bot] Nov 5, 2024
ed3e74a
Code Coverage for VB ApplicationServices Exceptions and minor cleanup…
paul1956 Nov 5, 2024
64b2290
Merge branch 'FixIssue#9807-2nd' into Shorten-Long-Lines-in-VB-Review…
paul1956 Nov 5, 2024
e607b09
Merge branch 'master' into Add-Network-Download-Tests-Only-Review-1st
paul1956 Nov 6, 2024
7e02be2
Merge branch 'Add-Network-Download-Tests-Only-Review-1st' into FixIss…
paul1956 Nov 6, 2024
d30f205
Merge
paul1956 Nov 6, 2024
2fdb828
Merge branch 'master' into Add-Network-Download-Tests-Only-Review-1st
paul1956 Nov 7, 2024
37364fc
Merge branch 'Add-Network-Download-Tests-Only-Review-1st' into FixIss…
paul1956 Nov 7, 2024
10f8dfd
Merge branch 'FixIssue#9807-2nd' into Shorten-Long-Lines-in-VB-Review…
paul1956 Nov 7, 2024
918f806
Merge branch 'master' into Add-Network-Download-Tests-Only-Review-1st
paul1956 Nov 8, 2024
44bd43f
Merge branch 'Add-Network-Download-Tests-Only-Review-1st' into FixIss…
paul1956 Nov 9, 2024
968078f
Merge branch 'FixIssue#9807-2nd' into Shorten-Long-Lines-in-VB-Review…
paul1956 Nov 9, 2024
3911bc1
Merge branch 'master' into Add-Network-Download-Tests-Only-Review-1st
paul1956 Nov 9, 2024
08df5f8
Merge branch 'Add-Network-Download-Tests-Only-Review-1st' into FixIss…
paul1956 Nov 9, 2024
001e0e1
Merge branch 'FixIssue#9807-2nd' into Shorten-Long-Lines-in-VB-Review…
paul1956 Nov 9, 2024
6bf9284
Merge branch 'master' into Add-Network-Download-Tests-Only-Review-1st
paul1956 Nov 11, 2024
5ec1a65
Merge branch 'Add-Network-Download-Tests-Only-Review-1st' into FixIss…
paul1956 Nov 11, 2024
bc21866
Merge branch 'FixIssue#9807-2nd' into Shorten-Long-Lines-in-VB-Review…
paul1956 Nov 11, 2024
df346b8
[main] Update dependencies from dotnet/arcade (#12459)
dotnet-maestro[bot] Nov 11, 2024
0bbdead
Add code coverage for TrackBarRenderer (#12427)
Zheng-Li01 Nov 11, 2024
2331748
[main] Update dependencies from dotnet/arcade (#12464)
dotnet-maestro[bot] Nov 12, 2024
4ad9cdf
Remove CLSCompliant attribute (#12469)
JeremyKuhne Nov 12, 2024
4361014
Delete build.sh (#12465)
lonitra Nov 12, 2024
d869cf1
Merge branch 'Add-Network-Download-Tests-Only-Review-1st' into FixIss…
paul1956 Nov 13, 2024
7653c69
Merge branch 'FixIssue#9807-2nd' into Shorten-Long-Lines-in-VB-Review…
paul1956 Nov 13, 2024
1cd54bf
Add NetwrokDownloadTests and WebListner
paul1956 Nov 14, 2024
66298ab
Fix merge issues
paul1956 Nov 14, 2024
08be576
Sync changes from PR #11867
paul1956 Nov 15, 2024
24551f1
Simplify code
paul1956 Nov 15, 2024
bf912fe
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Nov 15, 2024
f741607
Merge branch 'master' into FixIssue#9807-2nd-DRAFT
paul1956 Nov 15, 2024
ea1d00f
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Nov 15, 2024
1adf2be
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Nov 19, 2024
fae6727
Merge branch 'master' into FixIssue#9807-2nd-DRAFT
paul1956 Nov 19, 2024
af840f2
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Nov 19, 2024
933b97d
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Nov 19, 2024
8f280c4
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Nov 21, 2024
b5da52c
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Nov 21, 2024
bf91442
Minor Cleanup
paul1956 Nov 22, 2024
d1b4234
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Nov 22, 2024
f3423d4
Merge branch 'master' into FixIssue#9807-2nd-DRAFT
paul1956 Nov 22, 2024
340c744
Merge
paul1956 Nov 22, 2024
4e48605
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Nov 23, 2024
1f2e39d
Merge branch 'master' into FixIssue#9807-2nd-DRAFT
paul1956 Nov 23, 2024
c687aa1
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Nov 23, 2024
e3520d4
Merge
paul1956 Nov 23, 2024
1782915
Rename NetworkTests to DownloadTests
paul1956 Nov 24, 2024
69a4b60
Rename NetworkDownloadTests to DownloadFileTests
paul1956 Nov 24, 2024
c908a50
Rename NetworkDownloadTests to DownloadFileTests
paul1956 Nov 24, 2024
2434e29
Simplify DownloadFileAsync and improve code coverage
paul1956 Nov 25, 2024
10c1989
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Nov 25, 2024
e5d1bd9
Merge branch 'master' into FixIssue#9807-2nd-DRAFT
paul1956 Nov 25, 2024
c6234bb
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Nov 25, 2024
5370a80
Address merge issues with InternalInputBox
paul1956 Nov 25, 2024
49c02c3
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Nov 25, 2024
2d92096
Simplify dialog cancel
paul1956 Nov 26, 2024
63e68f1
Cleanup formatting
paul1956 Nov 26, 2024
4324b8b
Improve test coverage for Null or Empty network address
paul1956 Nov 26, 2024
91829aa
Fix formatting
paul1956 Nov 26, 2024
df41d1e
Improve test coverage
paul1956 Nov 26, 2024
ebdc88d
Dispose of HttpListener
paul1956 Nov 27, 2024
2718370
Fix formating
paul1956 Nov 28, 2024
4002f54
Manual merge with tests only
paul1956 Nov 28, 2024
175440a
Clean up formatting issues
paul1956 Nov 28, 2024
1bf3591
Add some Async Tests
paul1956 Nov 28, 2024
f1c6e65
Move download verifiers to separate file
paul1956 Nov 28, 2024
1d0b3e2
Fix broken test
paul1956 Nov 28, 2024
fa37a7b
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Nov 28, 2024
fbd2c7c
Remove Imports Microsoft.VisualBasic.CompilerServices
paul1956 Nov 28, 2024
0baeb02
Fix error cause myy removal of Imports Microsoft.VisualBasic.Compiler…
paul1956 Nov 28, 2024
887616f
Merge
paul1956 Nov 28, 2024
6cc497b
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Nov 28, 2024
8977f10
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Dec 6, 2024
96ea6b8
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Dec 6, 2024
e5942f7
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Dec 6, 2024
7f51bcc
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Dec 11, 2024
04ed891
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Dec 11, 2024
b125ee8
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Dec 11, 2024
78ffa35
Fix formatting
paul1956 Dec 11, 2024
a9eb2f5
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Dec 12, 2024
2ad4315
Merge
paul1956 Dec 12, 2024
de5b598
Merge
paul1956 Dec 12, 2024
5b89c04
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Dec 13, 2024
fdbbf0d
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Dec 13, 2024
021d2bd
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Dec 13, 2024
2b7303c
Fix behaviour cancel dialog behavior to match WebCleintDownload
paul1956 Dec 15, 2024
8d1fe48
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Dec 15, 2024
ffe7e35
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Dec 15, 2024
4657882
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Dec 16, 2024
590f854
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Dec 16, 2024
db6bdf6
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Dec 17, 2024
c1968fc
Merge branch 'master' into FixIssue#9807-2nd-DRAFT
paul1956 Dec 17, 2024
4a532db
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Dec 17, 2024
5ce02c9
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Dec 17, 2024
ccdf42b
Add UploadFile Tests
paul1956 Dec 17, 2024
c7542cc
Avoid merge issues
paul1956 Dec 17, 2024
7324bb1
Sort private variables
paul1956 Dec 17, 2024
65cbc86
Move WebListener.vb to TestUtilities Folder
paul1956 Dec 17, 2024
ae6e5c6
Fix formatting
paul1956 Dec 17, 2024
f3cc2d0
Formatting fixes
paul1956 Dec 17, 2024
5a79bf2
Fix formatting
paul1956 Dec 17, 2024
cdab3aa
Fix formatting
paul1956 Dec 17, 2024
3e0f553
Merge
paul1956 Dec 17, 2024
bd3bd66
Remove WebClientCopy and replace with HttpClientCopy
paul1956 Dec 19, 2024
47f12cd
Correct messaages for ProgressDialog which calls wrong GetResourceStr…
paul1956 Dec 19, 2024
e3ce2e2
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Dec 19, 2024
6a82523
Add more tests and check that files are properly uploaded with correc…
paul1956 Dec 19, 2024
8693579
Address PF for tabbing after _
paul1956 Dec 19, 2024
143917b
Merge
paul1956 Dec 19, 2024
2110608
Add char specifier to Inline single character strings
paul1956 Dec 19, 2024
bf40011
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Dec 19, 2024
85a61b8
Prevent Merge Issues
paul1956 Dec 19, 2024
f71edee
Partial Merge VbFileCleanupTestBase
paul1956 Dec 19, 2024
91c723c
Cleanup
paul1956 Dec 19, 2024
5dfe640
Merge
paul1956 Dec 19, 2024
a3ead0c
Fix some missing spaces
paul1956 Dec 19, 2024
41f8a19
Use PathSeparatorTestData
paul1956 Dec 20, 2024
73aa2cd
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Dec 20, 2024
eb6ba5c
Fix order of functions
paul1956 Dec 20, 2024
180ffc3
Sort and cleanup comments
paul1956 Dec 20, 2024
a7b20cc
Minor formatting changes
paul1956 Dec 20, 2024
4a920dd
Clean up XML Comments in ClipBoardProxy
paul1956 Dec 20, 2024
c633809
Update cooment for Cllipboard to restore changes lost in merge
paul1956 Dec 20, 2024
0302c9c
Sync ClipBoardProxy
paul1956 Dec 20, 2024
7c774ad
Merge Master
paul1956 Dec 20, 2024
4f9d051
Cleanup NetworkUploadFile and consolidate is interactive
paul1956 Dec 20, 2024
5769aee
Add and use InteractiveEnvironment
paul1956 Dec 20, 2024
1a977c9
Fix merge issues
paul1956 Dec 20, 2024
15aa370
Fix spacing
paul1956 Dec 20, 2024
8ae6b24
Move clientHandler initialization
paul1956 Dec 20, 2024
d74231a
Fix formatting
paul1956 Dec 20, 2024
cf837e1
Fix formatting
paul1956 Dec 20, 2024
03fc394
Merge
paul1956 Dec 20, 2024
abedfaa
Merge
paul1956 Dec 20, 2024
29b7296
Get all tests to work
paul1956 Dec 20, 2024
354ccdf
Improve UploadFile and DownloadFile Tests
paul1956 Dec 20, 2024
468e669
Add SR strings from WebClient
paul1956 Dec 20, 2024
6e313e2
Fix error handling and add new strings for to replace WebClient
paul1956 Dec 20, 2024
b8de54b
Fix error handling
paul1956 Dec 20, 2024
70283e4
Improve WebListener
paul1956 Dec 22, 2024
0fa9cd3
Fix logic in WebListener return 500 for server errors
paul1956 Dec 22, 2024
a6413df
Sort new functions
paul1956 Dec 22, 2024
53bbcac
Fix a;l remaining tests
paul1956 Dec 23, 2024
8449f48
Improve test server and test
paul1956 Dec 23, 2024
feb51c6
Minor formatiting correction
paul1956 Dec 23, 2024
6ee4575
Fix large file manual test
paul1956 Dec 23, 2024
6e3b58e
Improve a couple of Skip comments
paul1956 Dec 23, 2024
d3e5523
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Dec 23, 2024
4a1e562
Merge
paul1956 Dec 23, 2024
9310fc7
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Dec 23, 2024
c9f8d7c
Improove responsiveness of upload and download and sync the code
paul1956 Dec 25, 2024
ad1bab1
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Dec 25, 2024
86a3a05
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Dec 25, 2024
b4c6a3c
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Dec 25, 2024
c67d2a9
Simplify DownloadFileAsync
paul1956 Jan 1, 2025
c67f9cf
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Jan 2, 2025
3c103d7
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Jan 2, 2025
4d3c165
Shorten long lines in Network.DownloadFileAsync
paul1956 Jan 2, 2025
1fef092
Clean up Network.DownloadFileAsync
paul1956 Jan 2, 2025
134f52f
Cleanup comments without space after single quote
paul1956 Jan 2, 2025
4b0f285
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Jan 2, 2025
553b886
FIX comments in Network files
paul1956 Jan 2, 2025
51e23d3
Fix a few more missing spaces
paul1956 Jan 2, 2025
758772a
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Jan 6, 2025
9ad4e16
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Jan 6, 2025
ac4fdd8
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Jan 6, 2025
57b8ec7
Cleanup some spacing
paul1956 Jan 6, 2025
b8a8516
Fix some cancel's of DownloadFile and UploadFile being ignored.
paul1956 Jan 6, 2025
901bc58
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Jan 6, 2025
ac82c9f
PR feedback
paul1956 Jan 8, 2025
e2ff073
PR Feedback Cleanup files in Separate PR
paul1956 Jan 8, 2025
5f956f4
Merge branch 'Cleanup-review-first' into Code-Coverage-DownloadFile-R…
paul1956 Jan 8, 2025
f24382a
Prevent Merge issues
paul1956 Jan 8, 2025
4f963cf
Merge
paul1956 Jan 8, 2025
0b70c5d
Merge branch 'master' into Cleanup-review-first
paul1956 Jan 8, 2025
6f59c93
Merge branch 'Cleanup-review-first' into Code-Coverage-DownloadFile-R…
paul1956 Jan 8, 2025
ee82ec8
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Jan 8, 2025
3f71dd5
Fix merge error
paul1956 Jan 8, 2025
e55810f
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Jan 8, 2025
a36b059
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Jan 9, 2025
f6fe268
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Jan 9, 2025
313c487
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Jan 9, 2025
6509c30
Fix merge error
paul1956 Jan 9, 2025
e46d87e
Fix merge error
paul1956 Jan 9, 2025
6c4be49
Fix merge error
paul1956 Jan 9, 2025
395de61
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Jan 10, 2025
54315ae
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Jan 10, 2025
bf4d70a
PR Feedback Don't create new exceptions.
paul1956 Jan 11, 2025
dced84d
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Jan 11, 2025
d4d4b6b
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Jan 11, 2025
1466e7f
Merge branch 'FixIssue#9807-2nd-DRAFT' into Shorten-Long-Lines-in-VB-…
paul1956 Jan 11, 2025
b7ad7ae
Sort Unauthorized Access tests together
paul1956 Jan 12, 2025
a084485
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Jan 12, 2025
4fed93b
Fix merge issues
paul1956 Jan 12, 2025
253b185
Make it easier to test with real web server instead of WebListener
paul1956 Jan 12, 2025
7ddc1b2
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Jan 12, 2025
127c7ef
Make FileName for Transfer match size
paul1956 Jan 13, 2025
fde921e
Fix logic for ServerThrowsPasswordErrors
paul1956 Jan 13, 2025
3ed66c3
Add ServerConfiguratio,json file to allow manual testing using privat…
paul1956 Jan 13, 2025
c94a16f
Fix issues found in testing on File servers
paul1956 Jan 14, 2025
b674593
Fix upload and download tests to handle both possible cancelations ex…
paul1956 Jan 14, 2025
e8b912e
Correct skip download test on GitHub
paul1956 Jan 14, 2025
846ae50
Improve code coverage
paul1956 Jan 15, 2025
abeb4f7
Fix spelling error
paul1956 Jan 15, 2025
bb1b65a
Fix default values in ServerConfiguration.json
paul1956 Jan 15, 2025
96e7834
Correct default password for local testing
paul1956 Jan 15, 2025
9faf31e
Make CreateTempFile more robust by making size a FileSize Enum
paul1956 Jan 15, 2025
0efa368
Prevent merge issue
paul1956 Jan 16, 2025
efa5e04
Merge branch 'master' into Code-Coverage-DownloadFile-Review-1St
paul1956 Jan 16, 2025
74abf89
Merge
paul1956 Jan 16, 2025
1f5dd80
Fix test failures
paul1956 Jan 16, 2025
bbd01fe
Cleanup VbFileCleanupTestBase
paul1956 Jan 16, 2025
3594993
Merge branch 'Code-Coverage-DownloadFile-Review-1St' into FixIssue#98…
paul1956 Jan 16, 2025
061cb10
Merge
paul1956 Jan 16, 2025
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
5 changes: 4 additions & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
<Import Project="$(RepositoryEngineeringDir)Analyzer.targets" />
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
<Import Project="$(RepositoryEngineeringDir)packageContent.targets" />
<Import Project="$(RepositoryEngineeringDir)versioning.targets" />
<Import Project="$(RepositoryEngineeringDir)Test.targets" Condition="'$(IsTestProject)' == 'true' "/>

<PropertyGroup>
<Description Condition="'$(Description)' == ''">$(AssemblyName)</Description>
</PropertyGroup>

<!-- CA1416 Validate platform compatibility. Do not apply to netstandard as it does not have the attribute. -->
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.Versioning.SupportedOSPlatform" Condition="!$(TargetFramework.StartsWith('netstandard'))">
Expand Down
35 changes: 0 additions & 35 deletions eng/versioning.targets

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
Namespace My
' The following events are available for MyApplication:
' Startup: Raised when the application starts, before the startup form is created.
' Shutdown: Raised after all application forms are closed. This event is not raised if the application terminates abnormally.
' Shutdown: Raised after all application forms are closed. This event is not raised if the
' application terminates abnormally.
' UnhandledException: Raised if the application encounters an unhandled exception.
' StartupNextInstance: Raised when launching a single-instance application and the application is already active.
' NetworkAvailabilityChanged: Raised when the network connection is connected or disconnected.

' **NEW** ApplyApplicationDefaults: Raised when the application queries default values to be set for the application.
' **NEW** ApplyApplicationDefaults:
' Raised when the application queries default values to be set for the application.

' Example:
' Private Sub MyApplication_ApplyApplicationDefaults(sender As Object, e As ApplyApplicationDefaultsEventArgs) Handles Me.ApplyApplicationDefaults
' Private Sub MyApplication_ApplyApplicationDefaults(sender As Object, e As ApplyApplicationDefaultsEventArgs) _
LeafShi1 marked this conversation as resolved.
Show resolved Hide resolved
' Handles Me.ApplyApplicationDefaults
'
' ' Setting the application-wide default Font:
' e.Font = New Font(FontFamily.GenericSansSerif, 12, FontStyle.Regular)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
<UsePublicApiAnalyzers>true</UsePublicApiAnalyzers>
</PropertyGroup>

<ItemGroup>
<Compile Remove="Microsoft\VisualBasic\MyServices\Internal\WebClientCopy.vb" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\System.Windows.Forms\src\System.Windows.Forms.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Namespace Microsoft.VisualBasic.ApplicationServices
' The executing application (the EntryAssembly)
Private _info As AssemblyInfo

'Lazy-initialized and cached log object.
' Lazy-initialized and cached log object.
Private _log As Logging.Log

Public Sub New()
Expand All @@ -38,7 +38,9 @@ Namespace Microsoft.VisualBasic.ApplicationServices
Public ReadOnly Property Info() As AssemblyInfo
Get
If _info Is Nothing Then
Dim assembly As Reflection.Assembly = If(Reflection.Assembly.GetEntryAssembly(), Reflection.Assembly.GetCallingAssembly())
Dim assembly As Reflection.Assembly =
If(Reflection.Assembly.GetEntryAssembly(), Reflection.Assembly.GetCallingAssembly())

_info = New AssemblyInfo(assembly)
End If
Return _info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
' The .NET Foundation licenses this file to you under the MIT license.

Imports System.ComponentModel
Imports System.Runtime.Serialization

Imports VbUtils = Microsoft.VisualBasic.CompilerServices.ExceptionUtils

Expand All @@ -18,7 +19,7 @@ Namespace Microsoft.VisualBasic.ApplicationServices
' Deserialization constructor must be defined since we are serializable
<EditorBrowsable(EditorBrowsableState.Advanced)>
<Obsolete("Type or member is obsolete", DiagnosticId:="SYSLIB0051")>
Protected Sub New(info As Runtime.Serialization.SerializationInfo, context As Runtime.Serialization.StreamingContext)
Protected Sub New(info As SerializationInfo, context As StreamingContext)
MyBase.New(info, context)
End Sub

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,28 @@ Namespace Microsoft.VisualBasic.ApplicationServices
Public ReadOnly Property CommandLineArgs() As ObjectModel.ReadOnlyCollection(Of String)
Get
If _commandLineArgs Is Nothing Then
'Get rid of Arg(0) which is the path of the executing program. Main(args() as string) doesn't report the name of the app and neither will we
' Get rid of Arg(0) which is the path of the executing program. Main(args() as string)
' doesn't report the name of the app and neither will we
Dim envArgs As String() = Environment.GetCommandLineArgs
If envArgs.GetLength(0) >= 2 Then '1 element means no args, just the executing program. >= 2 means executing program + one or more command line arguments
Dim newArgs(envArgs.GetLength(0) - 2) As String 'dimming z(0) gives a z() of 1 element.
Array.Copy(envArgs, 1, newArgs, 0, envArgs.GetLength(0) - 1) 'copy everything but the 0th element (the path of the executing program)

' 1 element means no args, just the executing program.
If envArgs.GetLength(0) >= 2 Then
' >= 2 means executing program + one or more command line arguments
' dimming z(0) gives a z() of 1 element.
Dim newArgs(envArgs.GetLength(0) - 2) As String

' Copy everything but the 0th element (the path of the executing program)
Dim length As Integer = envArgs.GetLength(0) - 1
Array.Copy(
sourceArray:=envArgs,
sourceIndex:=1,
destinationArray:=newArgs,
destinationIndex:=0,
length)
_commandLineArgs = New ObjectModel.ReadOnlyCollection(Of String)(newArgs)
Else
_commandLineArgs = New ObjectModel.ReadOnlyCollection(Of String)(Array.Empty(Of String)()) 'provide the empty set
' Provide the empty set
_commandLineArgs = New ObjectModel.ReadOnlyCollection(Of String)(Array.Empty(Of String)())
End If
End If
Return _commandLineArgs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
' The .NET Foundation licenses this file to you under the MIT license.

Imports System.ComponentModel
Imports System.Runtime.Serialization

Imports VbUtils = Microsoft.VisualBasic.CompilerServices.ExceptionUtils

Expand All @@ -17,7 +18,7 @@ Namespace Microsoft.VisualBasic.ApplicationServices
' De-serialization constructor must be defined since we are serializable
<EditorBrowsable(EditorBrowsableState.Advanced)>
<Obsolete("Type or member obsolete.", DiagnosticId:="SYSLIB0051")>
Protected Sub New(info As Runtime.Serialization.SerializationInfo, context As Runtime.Serialization.StreamingContext)
Protected Sub New(info As SerializationInfo, context As StreamingContext)
MyBase.New(info, context)
End Sub

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ Namespace Microsoft.VisualBasic.ApplicationServices
''' Indicates whether or not the current user is a member of the passed in role.
''' </summary>
''' <param name="role">The name of the role.</param>
''' <returns><see langword="True"/> if the user is a member of the role otherwise <see langword="False"/>.</returns>
''' <returns>
''' <see langword="True"/> if the user is a member of the role otherwise <see langword="False"/>.
''' </returns>
Public Function IsInRole(role As String) As Boolean
Return InternalPrincipal.IsInRole(role)
End Function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,14 @@ Namespace Microsoft.VisualBasic.ApplicationServices
End Get
Set(value As Form)
If value Is Nothing Then
Throw VbUtils.GetArgumentNullException("MainForm", SR.General_PropertyNothing, "MainForm")
Throw VbUtils.GetArgumentNullException(
argumentName:="MainForm",
resourceKey:=SR.General_PropertyNothing,
"MainForm")
End If
If value Is _splashScreen Then
Throw New ArgumentException(VbUtils.GetResourceString(SR.AppModel_SplashAndMainFormTheSame))
Dim message As String = VbUtils.GetResourceString(SR.AppModel_SplashAndMainFormTheSame)
Throw New ArgumentException(message)
End If
_appContext.MainForm = value
End Set
Expand Down Expand Up @@ -480,7 +484,8 @@ Namespace Microsoft.VisualBasic.ApplicationServices
Try
If handler IsNot Nothing Then handler.Invoke(sender, e)
Catch ex As Exception
If Not OnUnhandledException(New UnhandledExceptionEventArgs(True, ex)) Then
Dim e1 As New UnhandledExceptionEventArgs(exitApplication:=True, exception:=ex)
If Not OnUnhandledException(e1) Then

' The user didn't write a handler so throw the error up the chain.
Throw
Expand All @@ -497,7 +502,8 @@ Namespace Microsoft.VisualBasic.ApplicationServices
''' it doesn't freeze up while the main form is getting it together.
''' </summary>
Private Sub DisplaySplash()
Debug.Assert(_splashScreen IsNot Nothing, "We should have never get here if there is no splash screen")
Const Message As String = "We should have never get here if there is no splash screen"
Debug.Assert(_splashScreen IsNot Nothing, Message)

If _splashTimer IsNot Nothing Then

Expand Down Expand Up @@ -538,13 +544,15 @@ Namespace Microsoft.VisualBasic.ApplicationServices
' have already seen via our hook of System.Windows.Forms.Application.ThreadException).
If _processingUnhandledExceptionEvent Then

' If the UnhandledException handler threw for some reason, throw that error out to the system.
' If the UnhandledException handler threw for some reason,
' throw that error out to the system.
Throw
Else

' We had an exception, but not during the OnUnhandledException handler so give the user
' a chance to look at what happened in the UnhandledException event handler
If Not OnUnhandledException(New UnhandledExceptionEventArgs(True, ex)) Then
Dim e As New UnhandledExceptionEventArgs(exitApplication:=True, ex)
If Not OnUnhandledException(e) Then

' The user didn't write a handler so throw the error out to the system
Throw
Expand Down Expand Up @@ -668,7 +676,7 @@ Namespace Microsoft.VisualBasic.ApplicationServices
''' <see cref="UnhandledException"/> event so we do the translation here before raising our event.
''' </remarks>
Private Sub OnUnhandledExceptionEventAdaptor(sender As Object, e As ThreadExceptionEventArgs)
OnUnhandledException(New UnhandledExceptionEventArgs(True, e.Exception))
OnUnhandledException(New UnhandledExceptionEventArgs(exitApplication:=True, e.Exception))
End Sub

''' <summary>
Expand Down Expand Up @@ -796,7 +804,9 @@ Namespace Microsoft.VisualBasic.ApplicationServices
#Enable Warning WFO5001

' We'll handle "/nosplash" for you.
If Not (commandLineArgs.Contains("/nosplash") OrElse Me.CommandLineArgs.Contains("-nosplash")) Then
If Not (commandLineArgs.Contains("/nosplash") OrElse
Me.CommandLineArgs.Contains("-nosplash")) Then

ShowSplashScreen()
End If

Expand Down Expand Up @@ -1016,7 +1026,10 @@ Namespace Microsoft.VisualBasic.ApplicationServices
''' <param name="value"></param>
Friend Shared Sub ValidateAuthenticationModeEnumValue(value As AuthenticationMode, paramName As String)
If value < AuthenticationMode.Windows OrElse value > AuthenticationMode.ApplicationDefined Then
Throw New InvalidEnumArgumentException(paramName, value, GetType(AuthenticationMode))
Throw New InvalidEnumArgumentException(
argumentName:=paramName,
invalidValue:=value,
enumClass:=GetType(AuthenticationMode))
End If
End Sub

Expand All @@ -1026,7 +1039,10 @@ Namespace Microsoft.VisualBasic.ApplicationServices
''' <param name="value"></param>
Friend Shared Sub ValidateShutdownModeEnumValue(value As ShutdownMode, paramName As String)
If value < ShutdownMode.AfterMainFormCloses OrElse value > ShutdownMode.AfterAllFormsClose Then
Throw New InvalidEnumArgumentException(paramName, value, GetType(ShutdownMode))
Throw New InvalidEnumArgumentException(
argumentName:=paramName,
invalidValue:=value,
enumClass:=GetType(ShutdownMode))
End If
End Sub

Expand Down
Loading