Gets the number of assertions evaluated.

Namespace:  Gallio.MSBuildTasks
Assembly:  Gallio.MSBuildTasks (in Gallio.MSBuildTasks.dll) Version: 3.2.0.0 (3.2.528.0)

Syntax

C#
public int AssertCount { get; private set; }
Visual Basic (Declaration)
Public Property AssertCount As Integer

Examples

To use this property, you need to include an Output tag within the Gallio tag to specify a name to reference it:
CopyC#
<Gallio>
     <!-- This tells MSBuild that the task's AssertionCount output property will
          be made available as a property called AssertionCount in the project
          after the tests have been run: -->
    <Output TaskParameter="AssertionCount" PropertyName="AssertionCount" />
</Gallio>
<!-- After execution the number of assertions can be retrieved like this: -->
<Message Text="$(AssertionCount) assertions were evaluated." />

See Also