mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding values to unit test and null checking in some properties
--HG-- branch : dev
This commit is contained in:
@@ -94,8 +94,9 @@ namespace Orchard.Tests.Modules.Users.Controllers {
|
||||
var controller = _container.Resolve<AdminController>();
|
||||
controller.ValueProvider = Values.From(new {
|
||||
UserName = "four",
|
||||
Email = "six@example.org",
|
||||
Password = "five",
|
||||
ConfirmPassword = "five"
|
||||
ConfirmPassword = "five",
|
||||
});
|
||||
var result = controller.CreatePOST();
|
||||
Assert.That(result, Is.TypeOf<RedirectToRouteResult>());
|
||||
|
Reference in New Issue
Block a user