Skip to content

Commit e927c63

Browse files
committed
Corrected reference to "ContentTypeDescriptor"
Unit test continued, in parts, to reference legacy `ContentType`, instead of updated `ContentTypeDescriptor`. This became apparent on the removal of the obsolete `ContentType` class, which had previously been provided for backwards compatibility.
1 parent a259509 commit e927c63

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Ignia.Topics.Tests/TopicTest.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public class TopicTest {
2727
/// </summary>
2828
[TestMethod]
2929
public void Topic_CreateTest() {
30-
var topic = TopicFactory.Create("Test", "ContentType");
30+
var topic = TopicFactory.Create("Test", "ContentTypeDescriptor");
3131
Assert.IsNotNull(topic);
3232
Assert.IsInstanceOfType(topic, typeof(ContentTypeDescriptor));
3333
Assert.AreEqual<string>(topic.Key, "Test");
34-
Assert.AreEqual<string>(topic.Attributes.GetValue("ContentType"), "ContentType");
34+
Assert.AreEqual<string>(topic.Attributes.GetValue("ContentType"), "ContentTypeDescriptor");
3535
}
3636

3737
/*==========================================================================================================================
@@ -44,7 +44,7 @@ public void Topic_CreateTest() {
4444
[ExpectedException(typeof(ArgumentException), "Topic permitted the ID to be reset; this should never happen.")]
4545
public void Topic_Change_IdTest() {
4646

47-
var topic = TopicFactory.Create("Test", "ContentType", 123);
47+
var topic = TopicFactory.Create("Test", "ContentTypeDescriptor", 123);
4848
topic.Id = 124;
4949

5050
Assert.AreEqual<int>(123, topic.Id);
@@ -81,8 +81,8 @@ public void Topic_IsContentTypeOf() {
8181
[TestMethod]
8282
public void Topic_Set_ParentTest() {
8383

84-
var parentTopic = TopicFactory.Create("Parent", "ContentType");
85-
var childTopic = TopicFactory.Create("Child", "ContentType");
84+
var parentTopic = TopicFactory.Create("Parent", "ContentTypeDescriptor");
85+
var childTopic = TopicFactory.Create("Child", "ContentTypeDescriptor");
8686

8787
parentTopic.Id = 5;
8888
childTopic.Parent = parentTopic;
@@ -102,9 +102,9 @@ public void Topic_Set_ParentTest() {
102102
// is going to call for the creation of mocks and dependency injection before it will pass. In the meanwhile, it is disabled.
103103
public void Topic_Change_ParentTest() {
104104

105-
var sourceParent = TopicFactory.Create("SourceParent", "ContentType");
106-
var targetParent = TopicFactory.Create("TargetParent", "ContentType");
107-
var childTopic = TopicFactory.Create("ChildTopic", "ContentType");
105+
var sourceParent = TopicFactory.Create("SourceParent", "ContentTypeDescriptor");
106+
var targetParent = TopicFactory.Create("TargetParent", "ContentTypeDescriptor");
107+
var childTopic = TopicFactory.Create("ChildTopic", "ContentTypeDescriptor");
108108

109109
sourceParent.Id = 5;
110110
targetParent.Id = 10;

0 commit comments

Comments
 (0)