Skip to content

Commit

Permalink
feat: mention testing in README
Browse files Browse the repository at this point in the history
  • Loading branch information
vlnevyhosteny committed Sep 6, 2023
1 parent 2bfef31 commit a9825c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ButterCMS.Tests/ButterCMS.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
Expand All @@ -8,7 +8,7 @@
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="RichardSzalay.MockHttp" Version="6.0.0" />
<PackageReference Include="RichardSzalay.MockHttp" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ButterCMS\ButterCMS.csproj" />
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,16 @@ Layout = "~/Views/Shared/Layouts/_Layout.cshtml";

## Exceptions

## Testing

To run SDK test just simply:

```
PM> dotnet test
```

Or use Visual Studio Test Explorer.

### InvalidKeyException

The library throws this exception when the Butter API key used to instatiate the client was not valid.
Expand Down

0 comments on commit a9825c4

Please sign in to comment.