Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated placeholder to isDateTime #32

Merged
merged 2 commits into from May 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -22,11 +22,11 @@
namespace Org.XmlUnit.Placeholder
{
/// <summary>
/// Handler for the "isDate" handler placeholder keyword
/// Handler for the "isDateTime" handler placeholder keyword
/// </summary>
public class IsDatePlaceholderHandler : IPlaceholderHandler
public class IsDateTimePlaceholderHandler : IPlaceholderHandler
{
private const string _keyword = "isDate";
private const string _keyword = "isDateTime";

/// <inheritdoc/>
public string Keyword => _keyword;
Expand Down
Expand Up @@ -23,9 +23,9 @@
namespace Org.XmlUnit.Placeholder
{
[TestFixture()]
public class IsDatePlaceholderHandlerTests
public class IsDateTimePlaceholderHandlerTests
{
private IPlaceholderHandler placeholderHandler = new IsDatePlaceholderHandler();
private IPlaceholderHandler placeholderHandler = new IsDateTimePlaceholderHandler();

[Test]
[TestCase("01-01-2020", TestName = "ShouldEvaluateDateWithDashes", ExpectedResult = ComparisonResult.EQUAL)]
Expand Down Expand Up @@ -56,7 +56,7 @@ public ComparisonResult EvaluateOtherCulturesTest(string testText, string cultur
[Test]
public void ShouldGetKeyword()
{
string expected = "isDate";
string expected = "isDateTime";
string keyword = placeholderHandler.Keyword;

Assert.AreEqual(expected, keyword);
Expand Down