mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
* add Archived to ProjectCard response add Archived to ProjectCardUpdate update integration tests * Add ProjectCardRequest model and update GetAll calls to use it Update unit tests Update integration tests * skip_branch_with_pr still ends up building the branch on the initial push, so let's only build master instead
29 lines
674 B
C#
29 lines
674 B
C#
using Octokit;
|
|
using Xunit;
|
|
|
|
public class ProjectCardRequestTests
|
|
{
|
|
public class TheToParametersDictionaryMethod
|
|
{
|
|
[Fact]
|
|
public void ContainsSetValues()
|
|
{
|
|
var request = new ProjectCardRequest(ProjectCardArchivedStateFilter.All);
|
|
|
|
var parameters = request.ToParametersDictionary();
|
|
|
|
Assert.Equal("all", parameters["archived_state"]);
|
|
}
|
|
|
|
[Fact]
|
|
public void ReturnsDefaultValuesForDefaultRequest()
|
|
{
|
|
var request = new ProjectCardRequest();
|
|
|
|
var parameters = request.ToParametersDictionary();
|
|
|
|
Assert.Empty(parameters);
|
|
}
|
|
}
|
|
}
|