Skip to content

Commit eda7a60

Browse files
[Improve] code coverage
1 parent 4b3ae69 commit eda7a60

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

ReqIFSharp.Tests/AttributeValueTests/AttributeValueBooleanTestFixture.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,11 @@ public void Verify_Convenience_Value_Property()
156156
var attributeValueBoolean = new AttributeValueBoolean();
157157
attributeValueBoolean.ObjectValue = true;
158158

159-
Assert.That(attributeValueBoolean.TheValue, Is.True);
160-
Assert.That(attributeValueBoolean.ObjectValue, Is.True);
159+
using (Assert.EnterMultipleScope())
160+
{
161+
Assert.That(attributeValueBoolean.TheValue, Is.True);
162+
Assert.That(attributeValueBoolean.ObjectValue, Is.True);
163+
}
161164
}
162165

163166
[Test]

ReqIFSharp.Tests/AttributeValueTests/AttributeValueEnumerationTestFixture.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,12 @@ public void Verify_Convenience_Value_Property()
153153

154154
var val = new List<EnumValue> { new EnumValue() };
155155
attributeValue.ObjectValue = val;
156-
157-
Assert.That(attributeValue.Values.Count, Is.EqualTo(1));
156+
157+
using (Assert.EnterMultipleScope())
158+
{
159+
Assert.That(attributeValue.Values.Count, Is.EqualTo(1));
160+
Assert.That(attributeValue.ObjectValue, Is.EqualTo(val));
161+
}
158162
}
159163

160164
[Test]

0 commit comments

Comments
 (0)