mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 19:00:47 +00:00
Implement new Project Card archiving (#1842)
* 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
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user