Skip to content

Commit 535a893

Browse files
committed
Implemented more expressive test names
For consistency with e.g. `AttributeValueCollectionTest` and `ITopicRepositoryTest`, updated the test namesin `TopicCollectionTest` to be more expressive using the format `METHOD_CONDITION_RESULT` (e.g., `Constuctor_IEnumerable_SeedsTopics()`).
1 parent ccc5554 commit 535a893

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

OnTopic.Tests/TopicCollectionTest.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ namespace OnTopic.Tests {
2020
public class TopicCollectionTest {
2121

2222
/*==========================================================================================================================
23-
| TEST: INDEXER
23+
| TEST: SET TOPIC: INDEXER: RETURNS TOPIC
2424
\-------------------------------------------------------------------------------------------------------------------------*/
2525
/// <summary>
2626
/// Establishes a number of topics, then accesses them by key.
2727
/// </summary>
2828
[TestMethod]
29-
public void SetTopic() {
29+
public void SetTopic_Indexer_ReturnsTopic() {
3030

3131
var topics = new TopicCollection();
3232

@@ -39,13 +39,13 @@ public void SetTopic() {
3939
}
4040

4141
/*==========================================================================================================================
42-
| TEST: PREPOPULATE
42+
| TEST: CONSTRUCTOR: IENUMERABLE: SEEDS TOPICS
4343
\-------------------------------------------------------------------------------------------------------------------------*/
4444
/// <summary>
4545
/// Establishes a number of topics, then seeds a new <see cref="TopicCollection{T}"/> with them.
4646
/// </summary>
4747
[TestMethod]
48-
public void Prepopulate() {
48+
public void Constructor_IEnumerable_SeedsTopics() {
4949

5050
var topics = new List<Topic>();
5151

@@ -60,13 +60,13 @@ public void Prepopulate() {
6060
}
6161

6262
/*==========================================================================================================================
63-
| TEST: AS READ ONLY
63+
| TEST: AS READ ONLY: RETURNS READ ONLY TOPIC COLLECTION
6464
\-------------------------------------------------------------------------------------------------------------------------*/
6565
/// <summary>
6666
/// Establishes a number of topics, converts the collection to read only, and ensures they are still present.
6767
/// </summary>
6868
[TestMethod]
69-
public void AsReadOnly() {
69+
public void AsReadOnly_ReturnsReadOnlyTopicCollection() {
7070

7171
var topics = new TopicCollection();
7272

0 commit comments

Comments
 (0)