You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
751 B
25 lines
751 B
using Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Model_UnitTests
|
|
{
|
|
public class test_unit_user
|
|
{
|
|
[Fact]
|
|
public void TestConstructUser()
|
|
{
|
|
PasswordManager passwordManager = new PasswordManager();
|
|
User user = new User("Bob", "Dylan", "bd@gmail.com", passwordManager.HashPassword("bobby"));
|
|
Assert.Equal("Bob", user.Name);
|
|
Assert.Equal("Dylan", user.Surname);
|
|
Assert.Equal("bd@gmail.com", user.Mail);
|
|
Assert.Equal(passwordManager.HashPassword("bobby"), user.Password);
|
|
Assert.NotNull(user.Priorities);
|
|
}
|
|
}
|
|
}
|