Skip to content

Commit

Permalink
Added nuspec, remove extra asyncs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmorrishill committed Jan 13, 2020
1 parent deb2997 commit 4548550
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
19 changes: 19 additions & 0 deletions FluentSim/FluentSim.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<!-- Required elements-->
<id>FluentSimulator</id>
<version>$version$</version>
<description>FluentSimulator is a .Net HTTP API simulator library that is extremely versitile and unassuming.</description>
<authors>Paul Morris-Hill</authors>
<projectUrl>https://github.com/paulmorrishill/FluentSimulator</projectUrl>
<licenseUrl>https://github.com/paulmorrishill/FluentSimulator/blob/master/LICENSE</licenseUrl>
<dependencies>
<dependency id="Newtonsoft.Json" version="10.0.2" />
</dependencies>
</metadata>
<files>
<file src="bin\Release\netstandard2.0\FluentSim.dll" target="lib\FluentSim.dll"></file>
<file src="bin\Release\netstandard2.0\FluentSim.pdb" target="lib\FluentSim.pdb"></file>
</files>
</package>
10 changes: 5 additions & 5 deletions FluentSimTests/FluentSimTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public void SequentialSetupsOverwriteThePreviousSetups()
}

[Test]
public async Task CanMakeGetRequestWithQueryString()
public void CanMakeGetRequestWithQueryString()
{
var queryString = "/test?key=value";
Sim.Get("/test").WithParameter("key", "value").Responds("OK");
Expand All @@ -404,7 +404,7 @@ public async Task CanMakeGetRequestWithQueryString()
}

[Test]
public async Task CanMakeGetRequestWithMultipleQueryStringsOutOfOrder()
public void CanMakeGetRequestWithMultipleQueryStringsOutOfOrder()
{
var queryString = "/test?key=value&key1=value1&key2=value2";
Sim.Get("/test")
Expand All @@ -417,7 +417,7 @@ public async Task CanMakeGetRequestWithMultipleQueryStringsOutOfOrder()
}

[Test]
public async Task GivenTheQueryStringIsLongerThanWhatWasExpected_Fails()
public void GivenTheQueryStringIsLongerThanWhatWasExpected_Fails()
{
var queryString = "/test?key=value&key1=value1&key2=value2";
Sim.Get("/test")
Expand All @@ -429,7 +429,7 @@ public async Task GivenTheQueryStringIsLongerThanWhatWasExpected_Fails()
}

[Test]
public async Task GivenTheExpectedParametersAreLongerThanTheQueryString_Fails()
public void GivenTheExpectedParametersAreLongerThanTheQueryString_Fails()
{
var queryString = "/test?key=value";
Sim.Get("/test")
Expand All @@ -445,7 +445,7 @@ public async Task GivenTheExpectedParametersAreLongerThanTheQueryString_Fails()
[TestCase("value%20here", "value here")]
[TestCase("value+here", "value here")]
[TestCase("Some%25%5E%26*(value", "Some%^&*(value")]
public async Task GivenTheQueryParamsHaveUrlEncodedCharactersItComparesOnUrlDecodedValues(string encoded, string decoded)
public void GivenTheQueryParamsHaveUrlEncodedCharactersItComparesOnUrlDecodedValues(string encoded, string decoded)
{
var queryString = "/test?key=" + encoded;
Sim.Get("/test")
Expand Down

0 comments on commit 4548550

Please sign in to comment.