Skip to content

Commit 71432f7

Browse files
authored
Added NFluent checks
Added basic NFluent checks to check different properties on HttpResponseMessage. Supported Checks: - HasHttpStatusCode - HasReasonPhrase - HasHttpVersion - HasResponseHeader - HasContent - HasContentHeader Closes #27
1 parent cf49a71 commit 71432f7

18 files changed

+1339
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
5+
<HasSharedItems>true</HasSharedItems>
6+
<SharedGUID>e405af28-9c17-4580-aebd-58b1bd4b116c</SharedGUID>
7+
</PropertyGroup>
8+
<PropertyGroup Label="Configuration">
9+
<Import_RootNamespace>SharedUtilities</Import_RootNamespace>
10+
</PropertyGroup>
11+
<ItemGroup>
12+
<Compile Include="$(MSBuildThisFileDirectory)StringMatcher.cs" />
13+
</ItemGroup>
14+
</Project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup Label="Globals">
4+
<ProjectGuid>e405af28-9c17-4580-aebd-58b1bd4b116c</ProjectGuid>
5+
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
6+
</PropertyGroup>
7+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
8+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
9+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
10+
<PropertyGroup />
11+
<Import Project="SharedUtilities.projitems" Label="Shared" />
12+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
13+
</Project>
File renamed without changes.

TestableHttpClient.sln

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,20 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1818
README.md = README.md
1919
EndProjectSection
2020
EndProject
21-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestableHttpClient.IntegrationTests", "test\TestableHttpClient.IntegrationTests\TestableHttpClient.IntegrationTests.csproj", "{37A6C1C0-1117-43DE-BD15-290BC8AD32BE}"
21+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestableHttpClient.IntegrationTests", "test\TestableHttpClient.IntegrationTests\TestableHttpClient.IntegrationTests.csproj", "{37A6C1C0-1117-43DE-BD15-290BC8AD32BE}"
22+
EndProject
23+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestableHttpClient.NFluent", "src\TestableHttpClient.NFluent\TestableHttpClient.NFluent.csproj", "{127E2F48-CB33-488E-88E3-1BB0043C8CC1}"
24+
EndProject
25+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestableHttpClient.NFluent.Tests", "test\TestableHttpClient.NFluent.Tests\TestableHttpClient.NFluent.Tests.csproj", "{29F350FB-5901-41AC-8605-F3413EE49E4A}"
26+
EndProject
27+
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "SharedUtilities", "SharedUtilities\SharedUtilities.shproj", "{E405AF28-9C17-4580-AEBD-58B1BD4B116C}"
2228
EndProject
2329
Global
30+
GlobalSection(SharedMSBuildProjectFiles) = preSolution
31+
SharedUtilities\SharedUtilities.projitems*{127e2f48-cb33-488e-88e3-1bb0043c8cc1}*SharedItemsImports = 5
32+
SharedUtilities\SharedUtilities.projitems*{e405af28-9c17-4580-aebd-58b1bd4b116c}*SharedItemsImports = 13
33+
SharedUtilities\SharedUtilities.projitems*{fd5111e1-2970-4dc4-84dd-e4966e17dcb3}*SharedItemsImports = 5
34+
EndGlobalSection
2435
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2536
Debug|Any CPU = Debug|Any CPU
2637
Debug|x64 = Debug|x64
@@ -66,6 +77,30 @@ Global
6677
{37A6C1C0-1117-43DE-BD15-290BC8AD32BE}.Release|x64.Build.0 = Release|Any CPU
6778
{37A6C1C0-1117-43DE-BD15-290BC8AD32BE}.Release|x86.ActiveCfg = Release|Any CPU
6879
{37A6C1C0-1117-43DE-BD15-290BC8AD32BE}.Release|x86.Build.0 = Release|Any CPU
80+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
81+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1}.Debug|Any CPU.Build.0 = Debug|Any CPU
82+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1}.Debug|x64.ActiveCfg = Debug|Any CPU
83+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1}.Debug|x64.Build.0 = Debug|Any CPU
84+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1}.Debug|x86.ActiveCfg = Debug|Any CPU
85+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1}.Debug|x86.Build.0 = Debug|Any CPU
86+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1}.Release|Any CPU.ActiveCfg = Release|Any CPU
87+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1}.Release|Any CPU.Build.0 = Release|Any CPU
88+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1}.Release|x64.ActiveCfg = Release|Any CPU
89+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1}.Release|x64.Build.0 = Release|Any CPU
90+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1}.Release|x86.ActiveCfg = Release|Any CPU
91+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1}.Release|x86.Build.0 = Release|Any CPU
92+
{29F350FB-5901-41AC-8605-F3413EE49E4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
93+
{29F350FB-5901-41AC-8605-F3413EE49E4A}.Debug|Any CPU.Build.0 = Debug|Any CPU
94+
{29F350FB-5901-41AC-8605-F3413EE49E4A}.Debug|x64.ActiveCfg = Debug|Any CPU
95+
{29F350FB-5901-41AC-8605-F3413EE49E4A}.Debug|x64.Build.0 = Debug|Any CPU
96+
{29F350FB-5901-41AC-8605-F3413EE49E4A}.Debug|x86.ActiveCfg = Debug|Any CPU
97+
{29F350FB-5901-41AC-8605-F3413EE49E4A}.Debug|x86.Build.0 = Debug|Any CPU
98+
{29F350FB-5901-41AC-8605-F3413EE49E4A}.Release|Any CPU.ActiveCfg = Release|Any CPU
99+
{29F350FB-5901-41AC-8605-F3413EE49E4A}.Release|Any CPU.Build.0 = Release|Any CPU
100+
{29F350FB-5901-41AC-8605-F3413EE49E4A}.Release|x64.ActiveCfg = Release|Any CPU
101+
{29F350FB-5901-41AC-8605-F3413EE49E4A}.Release|x64.Build.0 = Release|Any CPU
102+
{29F350FB-5901-41AC-8605-F3413EE49E4A}.Release|x86.ActiveCfg = Release|Any CPU
103+
{29F350FB-5901-41AC-8605-F3413EE49E4A}.Release|x86.Build.0 = Release|Any CPU
69104
EndGlobalSection
70105
GlobalSection(SolutionProperties) = preSolution
71106
HideSolutionNode = FALSE
@@ -74,6 +109,9 @@ Global
74109
{FD5111E1-2970-4DC4-84DD-E4966E17DCB3} = {4C8914F8-D732-462B-978E-3BB5DBE547D7}
75110
{70673E72-C346-4AC2-946D-D9F99816FC72} = {BBCED492-E92B-4FA8-A4A5-B5A76091F25E}
76111
{37A6C1C0-1117-43DE-BD15-290BC8AD32BE} = {BBCED492-E92B-4FA8-A4A5-B5A76091F25E}
112+
{127E2F48-CB33-488E-88E3-1BB0043C8CC1} = {4C8914F8-D732-462B-978E-3BB5DBE547D7}
113+
{29F350FB-5901-41AC-8605-F3413EE49E4A} = {BBCED492-E92B-4FA8-A4A5-B5A76091F25E}
114+
{E405AF28-9C17-4580-AEBD-58B1BD4B116C} = {4C8914F8-D732-462B-978E-3BB5DBE547D7}
77115
EndGlobalSection
78116
GlobalSection(ExtensibilityGlobals) = postSolution
79117
SolutionGuid = {CD31CAB7-6661-4E80-9A70-BC8BA6B9B764}

0 commit comments

Comments
 (0)