From 65e1a0da4cfdc0c91baad487fb5ee20773a78d34 Mon Sep 17 00:00:00 2001 From: Stanley Goldman Date: Mon, 20 Nov 2017 10:53:39 -0500 Subject: [PATCH] Fixing tests that check the serialization of GitLogEntry --- .../Process/ProcessManagerIntegrationTests.cs | 12 ++++++------ .../UnitTests/IO/LogEntryOutputProcessorTests.cs | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/tests/IntegrationTests/Process/ProcessManagerIntegrationTests.cs b/src/tests/IntegrationTests/Process/ProcessManagerIntegrationTests.cs index f1f6b77bb..458e997e6 100644 --- a/src/tests/IntegrationTests/Process/ProcessManagerIntegrationTests.cs +++ b/src/tests/IntegrationTests/Process/ProcessManagerIntegrationTests.cs @@ -57,8 +57,8 @@ public async Task LogEntriesTest() CommitID = "018997938335742f8be694240a7c2b352ec0835f", Description = "Moving project files where they should be kept", Summary = "Moving project files where they should be kept", - TimeString = firstCommitTime.ToString(DateTimeFormatInfo.CurrentInfo), - CommitTimeString = firstCommitTime.ToString(DateTimeFormatInfo.CurrentInfo), + TimeString = firstCommitTime.ToString(Constants.Iso8601Format), + CommitTimeString = firstCommitTime.ToString(Constants.Iso8601Format), }, new GitLogEntry { @@ -75,8 +75,8 @@ public async Task LogEntriesTest() CommitID = "03939ffb3eb8486dba0259b43db00842bbe6eca1", Description = "Initial Commit", Summary = "Initial Commit", - TimeString = secondCommitTime.ToString(DateTimeFormatInfo.CurrentInfo), - CommitTimeString = secondCommitTime.ToString(DateTimeFormatInfo.CurrentInfo), + TimeString = secondCommitTime.ToString(Constants.Iso8601Format), + CommitTimeString = secondCommitTime.ToString(Constants.Iso8601Format), }, }); } @@ -110,8 +110,8 @@ public async Task RussianLogEntriesTest() CommitID = "06d6451d351626894a30e9134f551db12c74254b", Description = "Я люблю github", Summary = "Я люблю github", - TimeString = commitTime.ToString(DateTimeFormatInfo.CurrentInfo), - CommitTimeString = commitTime.ToString(DateTimeFormatInfo.CurrentInfo), + TimeString = commitTime.ToString(Constants.Iso8601Format), + CommitTimeString = commitTime.ToString(Constants.Iso8601Format), } }); } diff --git a/src/tests/UnitTests/IO/LogEntryOutputProcessorTests.cs b/src/tests/UnitTests/IO/LogEntryOutputProcessorTests.cs index d2c0c4e78..04e5f5896 100644 --- a/src/tests/UnitTests/IO/LogEntryOutputProcessorTests.cs +++ b/src/tests/UnitTests/IO/LogEntryOutputProcessorTests.cs @@ -58,8 +58,8 @@ public void ShouldParseSingleCommit() }, Summary = "Rename RepositoryModelBase to RepositoryModel", Description = "Rename RepositoryModelBase to RepositoryModel", - TimeString = commitTime.ToString(DateTimeFormatInfo.CurrentInfo), - CommitTimeString = commitTime.ToString(DateTimeFormatInfo.CurrentInfo), + TimeString = commitTime.ToString(Constants.Iso8601Format), + CommitTimeString = commitTime.ToString(Constants.Iso8601Format), }, };