Skip to content

Commit dd57825

Browse files
committed
Fixed tests
1 parent a313b4d commit dd57825

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/LinkDotNet.Blog.IntegrationTests/Infrastructure/Persistence/RavenDb/BlogPostRepositoryTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ private static void StartServerIfNotRunning()
162162
ConfigureServer(new TestServerOptions
163163
{
164164
DataDirectory = "./RavenDbTest/",
165+
FrameworkVersion = "7.0.0-preview.4.22229.4",
165166
});
166167
}
167168
}

tests/LinkDotNet.Blog.IntegrationTests/Web/Controller/RssFeedControllerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ public async Task ShouldCreateRssFeed()
5757

5858
xml.Should().NotBeNull();
5959
var content = Encoding.UTF8.GetString(xml.FileContents);
60-
content.Should().Contain("<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<rss\r\n version=\"2.0\">\r\n <channel>\r\n <title>Test</title>\r\n <link>http://localhost/</link>\r\n <description>Description</description>\r\n <item>\r\n <guid\r\n isPermaLink=\"false\">2</guid>\r\n <link>http://localhost//blogPost/2</link>\r\n <title>2</title>\r\n <description>Short 2</description>\r\n <pubDate>Wed, 01 Jun 2022 00:00:00 +0200</pubDate>\r\n </item>\r\n <item>\r\n <guid\r\n isPermaLink=\"false\">1</guid>\r\n <link>http://localhost//blogPost/1</link>\r\n <title>1</title>\r\n <description>Short 1</description>\r\n <pubDate>Sun, 01 May 2022 00:00:00 +0200</pubDate>\r\n </item>\r\n </channel>\r\n</rss>");
60+
content.Should().Contain("<rss\r\n version=\"2.0\">\r\n <channel>\r\n <title>Test</title>\r\n <link>http://localhost/</link>\r\n <description>Description</description>\r\n <item>\r\n <guid\r\n isPermaLink=\"false\">2</guid>\r\n <link>http://localhost//blogPost/2</link>\r\n <title>2</title>\r\n <description>Short 2</description>\r\n <pubDate>Wed, 01 Jun 2022 00:00:00 +0200</pubDate>\r\n </item>\r\n <item>\r\n <guid\r\n isPermaLink=\"false\">1</guid>\r\n <link>http://localhost//blogPost/1</link>\r\n <title>1</title>\r\n <description>Short 1</description>\r\n <pubDate>Sun, 01 May 2022 00:00:00 +0200</pubDate>\r\n </item>\r\n </channel>\r\n</rss>");
6161
}
6262
}

0 commit comments

Comments
 (0)