Commit Graph
6 Commits
Author SHA1 Message Date
8to5Developer bc3a5de554 Improve code coverage of System.IO.FileSystem.AccessControl (35.7%) (dotnet/corefx#20680)
* -Added new classes to handle the unit tests for the following libraries:
 FileSysyemAuditRule.CS
 DirectoryObjectSecurity.CS
-Added new unit tests to the 'FileSystemAclExtensionsTests.cs' class

* updated the files according to the suggested code standards for test cases.

* updated the file according to the suggested code standards.

* Updated some of the test cases and ran the CodeFormatter tool.

* Removed the invalid terms in the code.


Commit migrated from https://github.com/dotnet/corefx/commit/12d25b0445f67ac299de5abb2af7af767c135c88
2017-06-12 18:23:15 -07:00
Viktor Hofer 69408edf6d Deactivating System.IO.FileSystem.AccessControl tests on uap/uapaot (dotnet/corefx#19750)
* Deactivating ACL tests on uap/uapaot

* Add reason why disabling tests

* Disabling tests for uap/uapaot

* Changed project configs in test


Commit migrated from https://github.com/dotnet/corefx/commit/6fc97cfbc24d97a2d4843cfc10db28d8bfc2141d
2017-05-16 01:31:39 -07:00
Daniel Harvey 252cdc5e95 Bulk updates of tests for AssertExtensions (dotnet/corefx#18491)
Bulk update to AssertExtensions.Throws for AOT support. This doesn't disable Assert.Throws.

Commit migrated from https://github.com/dotnet/corefx/commit/b43b4df2e0e2182154bb0f425cb4a61bc1269828
2017-04-18 09:52:02 -07:00
the-dwyer dd8e887b5d Improve code coverage for System.IO.FileSystem.AccessControl from 2.3% to 8.7% (dotnet/corefx#15815)
* Improve code coverage for System.IO.FileSystem.AccessControl

* Added check on parameter names for ArgumentNullExceptions and only passing in one null parameter

* add tests for gets and sets that do not throw exceptions

* renamed tests with returns valid object and removed set tests

* use temp directory and file

* use temp directory and file

* use TempDirectory and TempFile from Common code

* remove reference that is not needed

* call extension method from object


Commit migrated from https://github.com/dotnet/corefx/commit/ca5e2ecb33359a4c55ed7407ecc0b49bc78e3760
2017-02-23 11:38:13 -08:00
the-dwyer 1561c15c2a Improve code coverage for System.IO.FileSystem.AccessControl (dotnet/corefx#15375)
* Improve code coverage for System.IO.FileSystem.AccessControl

* Added check on parameter names for ArgumentNullExceptions and only passing in one null parameter

Commit migrated from https://github.com/dotnet/corefx/commit/b036d7a59620ad3812ca966f634e827a745f4475
2017-01-23 10:13:00 -08:00
stephentoub f2c4306f31 Add several missing test projects
Adding these gives us a place to put tests for the associated libraries, and also ensures that the libraries show up in code coverage.  Each library is empty with the exception of a single test that's necessary for code coverage to pick it up.  includes skeleton projects for:
- Microsoft.CSharp
- Microsoft.VisualBasic
- Microsoft.Win32.Registry.AccessControl
- System.Data.Common
- System.IO.FileSystem.AccessControl
- System.Reflection.Context
- System.Security.Claims
- System.Threading.AccessControl


Commit migrated from https://github.com/dotnet/corefx/commit/3b1efe2956682a5a240f9354787e05aab1b3edfc
2016-01-31 21:55:10 -05:00