30 Commits
Author SHA1 Message Date
Alexander Köplinger 6caf00b09c [bcl] Remove AssertExtensions helper classes (#5828)
* [bcl] Remove AssertExtensions helper classes

Since we're on nunitlite now we can use the proper `Assert.Throws<>()`
instead and remove the helper class (which we actually duplicated!)
2017-10-19 12:38:33 +02:00
Alexander Köplinger c4a5b6b5c3 [mcs] Remove NET_4_5 ifdef from the source files
It is always set in all profiles that we support so we can remove it.
2016-08-23 15:15:51 +02:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Alexander Köplinger 98cf04084a [bcl] Remove NET_4_0 defines from class libs
NET_4_0 is always defined now, so the ifdefs are redundant.
I verified the libs are exactly the same after this change, so this is effectively a no-op.
2015-07-26 15:01:49 +02:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
João Matos 5742335f66 Merge pull request #1349 from martinjt/MachineKeyProtect
Implement MachineKey.Protect and MachineKey.Unprotect
2014-12-16 14:26:08 -05:00
Alexander Köplinger fc02486d6a Fix NET_2_0 build 2014-11-04 10:49:57 +01:00
Martin Thwaites 8302b5782d Implement MachineKey.Protect and MachineKey.Unprotect 2014-11-03 21:52:18 +00:00
Martin Thwaites 1c6da6b912 Added the MembershipPasswordAttribute class and associated unit tests 2014-11-03 21:40:44 +00:00
Marek Habersack 63a9a149c4 [asp.net] Implemented 4.0 types System.Web.Security.{MachineKey,MachineKeyProtection} plus tests 2011-01-31 15:19:25 +01:00
Marek Habersack d0b8416d37 [asp.net] Fix for bug #643847. Membership.CreateUser overloads must check username and password for correctness. 2010-10-27 11:56:41 +02:00
Sebastien Pouliot a22389fde2 Normalization of cryptographic uses in asp.net
* System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:
Remove key length check and generic key generation.

* System.Web.Configuration_2.0/MachineKeySection.cs: Add support for 4.0
ValidationAlgorithm and the use of custom algorithms (validation and
decryption). Allow the use of any, valid, key length (based on the
algorithm). Let each algorithm creates its own key (e.g. special needs,
default length...)

* System.Web.Configuration_2.0/MachineKeySectionUtils.cs: Remove key
generation (from random) code and 192bits key length hack (won't work
with custom algorithms). Add support for new (4.0) algorithms, including
custom ones. Provide uniform/shared code to Encrypt/Decrypt, Sign/Verify
and EncryptSign/VerifyDecrypt using MachineKeySection data.

* System.Web.Configuration_2.0/MachineKeyValidation.cs: Add new (4.0)
values.

* System.Web.Configuration_2.0/MachineKeyValidationConverter.cs: Add
support for new (4.0) algorithms.

* System.Web.Handlers/AssemblyResourceLoader.cs: Use the new common
cryptographic code and base64 the encrypted data.

* System.Web.Security/FormsAuthentication.cs: Use the new common
cryptographic code and base64 the signed and/or encrypted data.

* System.Web.Security/MembershipHelper.cs: Use the new common
cryptographic code - this should be 100% compatible with existing data.

* System.Web.Security/RolePrincipal.cs: Use the new common cryptographic
code.

* System.Web.Security/SqliteMembershipProvider.cs: Adapt code for
internal API change.

* System.Web.UI/LosFormatter.cs: Adapt code for internal API change.
Fix some small behaviro changes wrt NET_4_0

* System.Web.UI/ObjectStateFormatter.cs: Use the new common cryptographic
code.

* System.Web.UI/Page.cs: Remove code that is now unneeded (with the new
common cryptogrraphic code).

* System.Web.Configuration_2.0/MachineKeyCompatibilityMode.cs: New.

* Test/System.Web.Configuration/MachineKeyValidationConverterTest.cs:
Add more, mostly 4.0, test cases.

* Test/System.Web.Security/FormsAuthenticationTest.cs: Add test case to
ensure HashPasswordForStoringInConfigFile is not case sensitive.

* Test/System.Web.UI/LosFormatterTest.cs: Add some rountrip test cases
with the different ctors
2010-10-12 11:38:47 -04:00
Sebastien Pouliot f9d87bdedd Fix (likely copy-paste) typo on FormsAuthPasswordFormat
* System.Web.Security/FormsAuthentication.cs: Fix typo (MD5->SHA1).
I suspect the later is not used very much by mono users

* Test/System.Web.Security/FormsAuthenticationTest.cs: Small change to
make sure the hash name is not case sensitive
2010-10-04 11:41:22 -04:00
Marek Habersack c4a76e1dd9 2010-02-11 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: explicitly dispose all the streams and
	readers+writers in CompileResource.

2010-02-11  Marek Habersack  <[email protected]>

	* Web.config, Web.mono.config: added test role manager
	definition.

2010-02-11  Marek Habersack  <[email protected]>

	* RolesTest.cs: added a test for IsUserInRole. Patch from Tiaan
	Geldenhuys <[email protected]>, thanks!

2010-02-11  Marek Habersack  <[email protected]>

	* Roles.cs: IsUserInRole checks if username is null or empty
	before attempting to use it. Patch from Tiaan Geldenhuys
	<[email protected]>. thanks!

2010-02-11  Marek Habersack  <[email protected]>

	* System.Web_test.dll.sources: added
	mainsoft/NunitWeb/NunitWeb/TestRoleProvider.cs

2010-02-11  Marek Habersack  <[email protected]>

	* WebTest.cs: test environment setup enhancements. Contributed by
	Tiaan Geldenhuys <[email protected]>, thanks!

	* TestRoleProvider.cs: added. Contributed by Tiaan Geldenhuys
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=151519
2010-02-11 14:15:55 +00:00
Gert Driesen e50614b48d * FontUnitTest.cs: Added test to verify locale dependent behavior of
FontUnit(string) ctor.
* FontUnit.cs: Fixed ToString () to use current locale. 
* FormsAuthenticationTest.cs: Fixed build using csc 1.x.

svn path=/trunk/mcs/; revision=72577
2007-02-10 13:24:08 +00:00
Adar Wesley 5a69722285 2007-01-11 Adar Wesley <[email protected]>
* MembershipProvider.cs: fixed EncryptPassword to use password buffer length


svn path=/trunk/mcs/; revision=70851
2007-01-11 12:09:27 +00:00
Igor Zelmanovich 5ff3132b30 2006-12-10 Igor Zelmanovich <[email protected]>
* FormsAuthenticationTest.cs: fixed tests.


svn path=/trunk/mcs/; revision=69284
2006-12-10 16:35:24 +00:00
Igor Zelmanovich 07ed73dc4a 2006-11-29 Igor Zelmanovich <[email protected]>
* CreateUserWizardTest.cs: fixed NunitWeb tests.
	* DetailsViewTest.cs: fixed NunitWeb tests.
	* FormParameterTest.cs: fixed NunitWeb tests.
	* FormViewTest.cs: fixed NunitWeb tests.
	* MenuTest.cs: fixed NunitWeb tests.
	* WizardStepBaseTest.cs: fixed NunitWeb tests.
	* XmlDataSourceTest.cs: fixed NunitWeb tests.
	* PageTest.cs: fixed NunitWeb tests.
	* FormsAuthenticationTest.cs: fixed NunitWeb tests.
	* StaticSiteMapProviderTest.cs: fixed NunitWeb tests.


svn path=/trunk/mcs/; revision=68673
2006-11-29 17:10:08 +00:00
Yoni Klain 7a6090166e added a NotWorking category attribute for tests that pass on .NET and fail on mono.
svn path=/trunk/mcs/; revision=67260
2006-11-02 09:11:11 +00:00
Yoni Klain d6560d7b46 Added a NotDotNet category attribute for tests that pass on mono and do not pass on .NET, yet the difference in behavior is reasonable.
svn path=/trunk/mcs/; revision=67212
2006-11-01 13:07:32 +00:00
Boris Kirzner 90e9d0c91c Fixes for NET_2_0 tests run for TARGET_JVM
svn path=/trunk/mcs/; revision=64854
2006-09-04 11:45:52 +00:00
Andrew Skiba cf2c07886a fix 2 testcases
svn path=/trunk/mcs/; revision=62392
2006-07-10 12:16:41 +00:00
Chris Toshok 08fa1dc9f4 2006-05-01 Chris Toshok <[email protected]>
* MembershipTest.cs (GeneratePassword): add test for password
	generation.


svn path=/trunk/mcs/; revision=60130
2006-05-01 18:25:21 +00:00
Sebastien Pouliot 8cd0472445 2005-09-21 Sebastien Pouliot <[email protected]>
* FormsAuthenticationTest.cs: CookieDomain property (2.0) changed from
	String.Empty (beta2) to null (RC).
	* MembershipProviderTest.cs: New. Mostly* useless test cases (* well 
	in proves it cannot be tested without providers and some extra infra).
	* RolePrincipalTest.cs: : New. Mostly* useless test cases (* well 
	in proves it cannot be tested without providers and some extra infra).


svn path=/trunk/mcs/; revision=50441
2005-09-22 03:39:16 +00:00
Sebastien Pouliot 527b556f07 2005-09-18 Sebastien Pouliot <[email protected]>
* FormsIdentityTest.cs: Changed constructor used to create the ticket
	to one that doesn't throw a NRE under MS runtime.


svn path=/trunk/mcs/; revision=50210
2005-09-18 23:51:38 +00:00
Sebastien Pouliot 5c6f0ffa2b 2005-09-09 Sebastien Pouliot <[email protected]>
* WindowsAuthenticationModuleCas.cs: New. CAS unit tests.

svn path=/trunk/mcs/; revision=49838
2005-09-09 22:46:10 +00:00
Sebastien Pouliot e270ad5d7b 2005-09-09 Sebastien Pouliot <[email protected]>
* DefaultAuthenticationEventArgsCas.cs: New. CAS unit tests.
	* DefaultAuthenticationModuleCas.cs: New. CAS unit tests.
	* FileAuthorizationModuleCas.cs: New. CAS unit tests.
	* FormsAuthenticationCas.cs: New. CAS unit tests.
	* FormsAuthenticationEventArgsCas.cs: Added LinkDemand tests.
	* FormsAuthenticationModuleCas.cs: New. CAS unit tests.
	* FormsAuthenticationTicketCas.cs: New. CAS unit tests.
	* FormsIdentityCas.cs: New. CAS unit tests.
	* FormsIdentityTest.cs: New. Unit tests for FormsIdentity.
	* PassportAuthenticationEventArgsCas.cs: Added LinkDemand tests.
	* PassportAuthenticationModuleCas.cs: New. CAS unit tests.
	* PassportIdentityCas.cs: New. CAS unit tests.
	* WindowsAuthenticationEventArgsCas.cs: Added LinkDemand tests.
	* UrlAuthorizationModuleCas.cs: New. CAS unit tests.


svn path=/trunk/mcs/; revision=49818
2005-09-09 18:46:01 +00:00
Sebastien Pouliot e1c6480b2b 2005-09-01 Sebastien Pouliot <[email protected]>
* FormsAuthenticationEventArgsCas.cs: New. CAS unit tests.
	* PassportAuthenticationEventArgsCas.cs: New. CAS unit tests.
	* WindowsAuthenticationEventArgsCas.cs: New. CAS unit tests.


svn path=/trunk/mcs/; revision=49284
2005-09-01 18:23:12 +00:00
Sebastien Pouliot bdd827418c Tests
svn path=/trunk/mcs/; revision=48935
2005-08-26 22:52:45 +00:00
Sebastien Pouliot 36f5ada034 In Test/System.Web.Security:
2005-05-21  Sebastien Pouliot  <[email protected]>

	* FormsAuthenticationTest.cs: New. Unit tests for FormsAuthentication.
In .:
2005-05-21  Sebastien Pouliot  <[email protected]>

	* System.Web_test.dll.sources: Added tests for FormsAuthentication.


svn path=/trunk/mcs/; revision=44879
2005-05-22 00:34:04 +00:00