Files
octokit.net/Octokit.Tests/Models/ProjectCardRequestTests.cs
Ryan Gribble 043e64b89f 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
2018-07-11 20:38:54 +10:00

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);
}
}
}