Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/System.Management.Automation/utils/assert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#define DEBUG

using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Text;

namespace System.Management.Automation
Expand Down Expand Up @@ -126,6 +127,7 @@ internal static void Assert(
#if RESHARPER_ATTRIBUTES
[JetBrains.Annotations.AssertionCondition(JetBrains.Annotations.AssertionConditionType.IS_TRUE)]
#endif
[DoesNotReturnIf(false)]
bool condition,
string whyThisShouldNeverHappen)
{
Expand Down Expand Up @@ -159,6 +161,7 @@ internal static void
#if RESHARPER_ATTRIBUTES
[JetBrains.Annotations.AssertionCondition(JetBrains.Annotations.AssertionConditionType.IS_TRUE)]
#endif
[DoesNotReturnIf(false)]
bool condition,
string whyThisShouldNeverHappen, string detailMessage)
{
Expand Down