Skip to content

Commit a701089

Browse files
committed
IDE0017: Simplified object initialization with inline properties
This was inadvertently introduced with the unit tests for `AsAttributeDictionary()` (d4b77c1).
1 parent 8f80333 commit a701089

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

OnTopic.Tests/AttributeDictionaryTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ public void AsAttributeDictionary_ExcludedKeys_Excluded() {
212212
public void AsAttributeDictionary_InheritFromBase_InheritsValues() {
213213

214214
var baseTopic = new Topic("BaseTopic", "Page");
215-
var topic = new Topic("Test", "Page");
216-
217-
topic.BaseTopic = baseTopic;
215+
var topic = new Topic("Test", "Page") {
216+
BaseTopic = baseTopic
217+
};
218218

219219
baseTopic.Attributes.SetValue("Subtitle", "Subtitle");
220220

0 commit comments

Comments
 (0)