Updated the enum ItemState with deprecating the ItemState.All and making the necessary changes

This commit is contained in:
Prayank Mathur
2016-03-14 23:22:18 +05:30
parent 56791f2cc8
commit 397b1f1c82
19 changed files with 42 additions and 42 deletions
@@ -31,7 +31,7 @@ namespace Octokit.Tests.Integration
var github = Helper.GetAuthenticatedClient();
var client = new ObservableMilestonesClient(github);
var milestones = await client.GetAllForRepository("libgit2", "libgit2sharp", new MilestoneRequest { State = ItemState.Closed }).ToList();
var milestones = await client.GetAllForRepository("libgit2", "libgit2sharp", new MilestoneRequest { State = ItemStateFilter.Closed }).ToList();
Assert.NotEmpty(milestones);
Assert.True(milestones.All(m => m.State == ItemState.Closed));