Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CleanArchitecture
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CleanArchitecture
Commits
0d6a317e
Commit
0d6a317e
authored
Oct 03, 2016
by
Steve Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wired up xunit and a few simple tests to start
parent
d6656043
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
7 deletions
+46
-7
CleanArchitecture.Tests.xproj
tests/CleanArchitecture.Tests/CleanArchitecture.Tests.xproj
+4
-3
ToDoItemMarkCompleteShould.cs
...chitecture.Tests/Core/Model/ToDoItemMarkCompleteShould.cs
+31
-0
project.json
tests/CleanArchitecture.Tests/project.json
+11
-4
No files found.
tests/CleanArchitecture.Tests/CleanArchitecture.Tests.xproj
View file @
0d6a317e
...
...
@@ -4,7 +4,6 @@
<VisualStudioVersion
Condition=
"'$(VisualStudioVersion)' == ''"
>
14.0
</VisualStudioVersion>
<VSToolsPath
Condition=
"'$(VSToolsPath)' == ''"
>
$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
</VSToolsPath>
</PropertyGroup>
<Import
Project=
"$(VSToolsPath)\DotNet\Microsoft.DotNet.Props"
Condition=
"'$(VSToolsPath)' != ''"
/>
<PropertyGroup
Label=
"Globals"
>
<ProjectGuid>
0f6a8976-f61a-4eb3-a38c-0a2ed39f157b
</ProjectGuid>
...
...
@@ -13,9 +12,11 @@
<OutputPath
Condition=
"'$(OutputPath)'=='' "
>
.\bin\
</OutputPath>
<TargetFrameworkVersion>
v4.6
</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<SchemaVersion>
2.0
</SchemaVersion>
</PropertyGroup>
<ItemGroup>
<Service
Include=
"{82a7f48d-3b50-4b1e-b82e-3ada8210c358}"
/>
</ItemGroup>
<Import
Project=
"$(VSToolsPath)\DotNet\Microsoft.DotNet.targets"
Condition=
"'$(VSToolsPath)' != ''"
/>
</Project>
\ No newline at end of file
tests/CleanArchitecture.Tests/Core/Model/ToDoItemMarkCompleteShould.cs
0 → 100644
View file @
0d6a317e
using
CleanArchitecture.Core.Model
;
using
CleanArchitecture.Core.Events
;
using
System.Linq
;
using
Xunit
;
namespace
CleanArchitecture.Tests.Core.Model
{
public
class
ToDoItemMarkCompleteShould
{
[
Fact
]
public
void
SetIsDoneToTrue
()
{
var
item
=
new
ToDoItem
();
item
.
MarkComplete
();
Assert
.
True
(
item
.
IsDone
);
}
[
Fact
]
public
void
RaiseToDoItemCompletedEvent
()
{
var
item
=
new
ToDoItem
();
item
.
MarkComplete
();
Assert
.
Equal
(
1
,
item
.
Events
.
Count
());
Assert
.
IsType
<
ToDoItemCompletedEvent
>(
item
.
Events
.
First
());
}
}
}
\ No newline at end of file
tests/CleanArchitecture.Tests/project.json
View file @
0d6a317e
{
"version"
:
"1.0.0-*"
,
"testRunner"
:
"xunit"
,
"dependencies"
:
{
"CleanArchitecture.Core"
:
"1.0.0-*"
,
"NETStandard.Library"
:
"1.6.0"
"NETStandard.Library"
:
"1.6.0"
,
"xunit"
:
"2.2.0-beta2-build3300"
,
"dotnet-test-xunit"
:
"2.2.0-preview2-build1029"
},
"frameworks"
:
{
"netstandard1.6"
:
{
"imports"
:
"dnxcore50"
"netcoreapp1.0"
:
{
"dependencies"
:
{
"Microsoft.NETCore.App"
:
{
"type"
:
"platform"
,
"version"
:
"1.0.0"
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment