-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Turned on nullable types * Removed incorrect usage of IComparable in DefaultPropertyResolver Closes #95
- Loading branch information
1 parent
56809a6
commit f05d987
Showing
199 changed files
with
2,395 additions
and
1,578 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
ModelBuilder.UnitTests/BuildActions/BuildCapabilityTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace ModelBuilder.UnitTests.BuildActions | ||
{ | ||
using System; | ||
using FluentAssertions; | ||
using ModelBuilder.BuildActions; | ||
using ModelBuilder.ValueGenerators; | ||
using Xunit; | ||
|
||
public class BuildCapabilityTests | ||
{ | ||
[Fact] | ||
public void ImplementedByTypeReturnsConstructorParameter() | ||
{ | ||
var type = typeof(EmailValueGenerator); | ||
|
||
var sut = new BuildCapability(type); | ||
|
||
sut.ImplementedByType.Should().Be(type); | ||
} | ||
|
||
[Fact] | ||
public void ThrowsExceptionWithNullImplementedByType() | ||
{ | ||
// ReSharper disable once ObjectCreationAsStatement | ||
Action action = () => new BuildCapability(null!); | ||
|
||
action.Should().Throw<ArgumentNullException>(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.