# < Summary

Information

Class: | Renci.SshNet.Security.Chaos.NaCl.Internal.InternalAssert
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\Chaos.NaCl\Internal\InternalAssert.cs

Line coverage
75%

Covered lines: | 3
Uncovered lines: | 1
Coverable lines: | 4
Total lines: | 13
Line coverage: | 75%

Branch coverage
50%

Covered branches: | 1
Total branches: | 2
Branch coverage: | 50%

Method coverage

Feature is only available for sponsors

Upgrade to PRO version

# Metrics

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
Assert(...) | 50% | 2 | 75%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\Chaos.NaCl\Internal\InternalAssert.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | ``
|  | `3` |  | `namespace Renci.SshNet.Security.Chaos.NaCl.Internal`
|  | `4` |  | `{`
|  | `5` |  | `internal static class InternalAssert`
|  | `6` |  | `{`
|  | `7` |  | `internal static void Assert(bool condition, string message)`
| 3180 | `8` |  | `{`
| 3180 | `9` |  | `if (!condition)`
| 0 | `10` |  | `throw new InvalidOperationException("An assertion in Chaos.Crypto failed " + message);`
| 3180 | `11` |  | `}`
|  | `12` |  | `}`
|  | `13` |  | `}`

# Methods/Properties

Assert(System.Boolean,System.String)