Skip to content

Commit 2644201

Browse files
committed
Instantiated property using inline syntax
1 parent 806ca93 commit 2644201

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

OnTopic.Tests/AttributeCollectionTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ public void SetValue_ValueChanged_IsDirty() {
449449
[Fact]
450450
public void Clear_NonNullableValueWithBusinessLogic_ThrowsException() {
451451

452-
var topic = new CustomTopic("Test", "Page");
453-
454-
topic.NonNullableAttribute = "Test";
452+
var topic = new CustomTopic("Test", "Page") {
453+
NonNullableAttribute = "Test"
454+
};
455455

456456
Assert.Throws<ArgumentNullException>(() =>
457457
topic.Attributes.Clear()

0 commit comments

Comments
 (0)