Skip to content

Commit fcb9f22

Browse files
committed
Rename: entry -> item
1 parent 465fbd6 commit fcb9f22

28 files changed

Lines changed: 1106 additions & 1051 deletions

DependencyQueue.Tests/DependencyQueueCycleErrorTests.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,47 @@ namespace DependencyQueue;
1010
public class DependencyQueueCycleErrorTests
1111
{
1212
[Test]
13-
public void Create_NullRequiringEntry()
13+
public void Create_NullRequiringItem()
1414
{
1515
Invoking(() => Error.Cycle(null!, new Topic("b")))
1616
.Should().Throw<ArgumentNullException>()
17-
.Where(e => e.ParamName == "requiringEntry");
17+
.Where(e => e.ParamName == "requiringItem");
1818
}
1919

2020
[Test]
2121
public void Create_NullRequiredTopic()
2222
{
23-
Invoking(() => Error.Cycle(new Entry("a"), null!))
23+
Invoking(() => Error.Cycle(new Item("a"), null!))
2424
.Should().Throw<ArgumentNullException>()
2525
.Where(e => e.ParamName == "requiredTopic");
2626
}
2727

2828
[Test]
2929
public void Type_Get()
3030
{
31-
var entry = new Entry("a");
31+
var item = new Item ("a");
3232
var topic = new Topic("b");
33-
var error = Error.Cycle(entry, topic);
33+
var error = Error.Cycle(item, topic);
3434

3535
error.Type.Should().Be(ErrorType.Cycle);
3636
}
3737

3838
[Test]
39-
public void RequiringEntry_Get()
39+
public void RequiringItem_Get()
4040
{
41-
var entry = new Entry("a");
41+
var item = new Item ("a");
4242
var topic = new Topic("b");
43-
var error = Error.Cycle(entry, topic);
43+
var error = Error.Cycle(item, topic);
4444

45-
error.RequiringEntry.Should().BeSameAs(entry);
45+
error.RequiringItem.Should().BeSameAs(item);
4646
}
4747

4848
[Test]
4949
public void RequiredTopic_Get()
5050
{
51-
var entry = new Entry("a");
51+
var item = new Item ("a");
5252
var topic = new Topic("b");
53-
var error = Error.Cycle(entry, topic);
53+
var error = Error.Cycle(item, topic);
5454

5555
error.RequiredTopic.Should().BeSameAs(topic);
5656
}
@@ -59,13 +59,13 @@ public void RequiredTopic_Get()
5959
[SetCulture("")] // invariant culture
6060
public void ToStringMethod()
6161
{
62-
var entry = new Entry("a");
62+
var item = new Item ("a");
6363
var topic = new Topic("b");
64-
var error = Error.Cycle(entry, topic);
64+
var error = Error.Cycle(item, topic);
6565

6666
error.ToString().Should().Be(
67-
"The entry 'a' cannot require topic 'b' because " +
68-
"an entry providing that topic already requires entry 'a'. " +
67+
"The item 'a' cannot require topic 'b' because " +
68+
"an item providing that topic already requires item 'a'. " +
6969
"The dependency graph does not permit cycles."
7070
);
7171
}

DependencyQueue.Tests/DependencyQueueEntryBuilderTests.cs

Lines changed: 0 additions & 235 deletions
This file was deleted.

0 commit comments

Comments
 (0)