Commit Graph
5 Commits
Author SHA1 Message Date
Marco RossignoliandStephen Toub aea45f4e75 Add MailAddress.TryCreate api (#1052)
* Add TryCreate apis

* address PR feedback

* Update src/libraries/Common/src/System/Net/Mail/MailAddressParser.cs

Co-Authored-By: Stephen Toub <[email protected]>

* Update src/libraries/Common/src/System/Net/Mail/DotAtomReader.cs

Co-Authored-By: Stephen Toub <[email protected]>

* Update src/libraries/Common/src/System/Net/Mail/MailAddressParser.cs

Co-Authored-By: Stephen Toub <[email protected]>

* Address PR feedback, split TryParse parameters for better visibility

* Address PR feedback, add return api documentation, update code comments

* set out parameter when we have result

Co-authored-by: Stephen Toub <[email protected]>
2020-02-10 15:05:58 -08:00
Stephen Toub 60d1224ddd Re-enable StyleCop warnings SA1028 and SA1518 (trailing whitespace and blank lines) (dotnet/corefx#40113)
Mechanical/automated change.  The only manual changes were a) removing the two rules from the CodeAnalysis.ruleset file, b) removing spaces from one line of a .targets file that is used to generate a .cs file, and c) reverting the changes in a few test files where the naive replacement happened in the middle of a verbatim string where the whitespace actually mattered.

Commit migrated from https://github.com/dotnet/corefx/commit/09a6e66b0c2b31bd0f6e7e3170537d14027aeed0
2019-08-07 21:07:58 -04:00
Ganbarukamo41 9be9c570be Enable analyzer for xUnit2000 (Constants and literals should be the expected argument) (dotnet/corefx#39842)
* Enable xUnit2000 analyzer

This commit enables xUnit2000 (Constants and literals should be the expected argument) and apply fixes for the existing violating codes.
* a Massive commit fixing xUnit2000
* fixing some 2003 errors

* Fix mistakes

* Fix missed errors for unix


Commit migrated from https://github.com/dotnet/corefx/commit/93d7aa1c1737b6da29d04b78557215e18eb786d4
2019-07-28 15:47:52 -07:00
Hugh Bellamy 7cbcd5ed85 Convert most Assert.Throws<ArgumentException> without param name to AssertExtensions (dotnet/corefx#21455)
* Registry

* Collections

* ComponentModel

* Configuration

* Data

* Globalization

* Drawing

* Diagnostics

* IO

* Linq

* Add System.Net param names in tests

* Move ArgumentExceptions in System.Private.Xml to AssertExtensions

* Add System.Reflection.* ArgumentException param names

* Add param names for System.Runtime* ArgumentExceptions

* Add ArgumentException param names to System.Security.*

* Add ArgumentException param names to System.Text.*

* Add param names to ArgumentExceptions in misc projects

* Add System.Threading.* ArgumentException param names

* Fix missing files

* Fixes for unix and netfx

* Fix more failures and revert a IdnaConformance tests to avoid merge conflicts with dotnet/corefx#21463


Commit migrated from https://github.com/dotnet/corefx/commit/59915687bb261efeae70565d0ca8990ac45ceb9c
2017-06-23 12:33:47 -07:00
Lakshmi Priya Sekar 01bc23cb98 Add tests for System.Net.Mail.
Commit migrated from https://github.com/dotnet/corefx/commit/790f71f70482ec7afa8e8e3172cd0b7292f8965c
2016-10-17 00:49:05 -07:00