-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
ProjectConstructor.cs
48 lines (37 loc) · 985 Bytes
/
ProjectConstructor.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using Clean.Architecture.Core.ProjectAggregate;
using Xunit;
namespace Clean.Architecture.UnitTests.Core.ProjectAggregate;
public class ProjectConstructor
{
private string _testName = "test name";
private PriorityStatus _testPriority = PriorityStatus.Backlog;
private Project? _testProject;
private Project CreateProject()
{
return new Project(_testName, _testPriority);
}
[Fact]
public void InitializesName()
{
_testProject = CreateProject();
Assert.Equal(_testName, _testProject.Name);
}
[Fact]
public void InitializesPriority()
{
_testProject = CreateProject();
Assert.Equal(_testPriority, _testProject.Priority);
}
[Fact]
public void InitializesTaskListToEmptyList()
{
_testProject = CreateProject();
Assert.NotNull(_testProject.Items);
}
[Fact]
public void InitializesStatusToInProgress()
{
_testProject = CreateProject();
Assert.Equal(ProjectStatus.Complete, _testProject.Status);
}
}