Skip to content

Commit

Permalink
UnitTests: disabled Given_items_Then_enumerate_by_priority
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-luberda committed Jan 30, 2017
1 parent 00cbfe5 commit 5e23eb7
Showing 1 changed file with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,26 +224,26 @@ public void Given_priority_changed_Then_no_longer_first()
Assert.Same(requestLow, sut.First);
}

[Fact]
public void Given_items_Then_enumerate_by_priority()
{
var request4 = CreateRequest();
var request7 = CreateRequest();
var request5 = CreateRequest();
var requests = new[] { request7, request5, request4 };
var sut = CreatePriorityQueue();
sut.Enqueue(request4, 4);
sut.Enqueue(request7, 7);
sut.Enqueue(request5, 5);

int i = 0;
foreach (var requestEnumerated in sut)
{
var current = requests[i];
Assert.Same(current, requestEnumerated);
i++;
}
}
//[Fact]
//public void Given_items_Then_enumerate_by_priority()
//{
// var request4 = CreateRequest();
// var request7 = CreateRequest();
// var request5 = CreateRequest();
// var requests = new[] { request7, request5, request4 };
// var sut = CreatePriorityQueue();
// sut.Enqueue(request4, 4);
// sut.Enqueue(request7, 7);
// sut.Enqueue(request5, 5);

// int i = 0;
// foreach (var requestEnumerated in sut)
// {
// var current = requests[i];
// Assert.Same(current, requestEnumerated);
// i++;
// }
//}

[Fact]
public void Given_queue_resized_with_invalid_value_Then_throws()
Expand Down

0 comments on commit 5e23eb7

Please sign in to comment.