-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathEnsure.cs
More file actions
23 lines (21 loc) · 1.95 KB
/
Ensure.cs
File metadata and controls
23 lines (21 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Platform.Assertions.ExtensionRoots;
namespace Platform.Assertions
{
/// <summary>
/// <para>Contains two extensible classes instances that can be supplemented with static helper methods by using the extension mechanism. These methods ensure the contract compliance.</para>
/// <para>Содержит два экземпляра расширяемых класса, которые можно дополнять статическими вспомогательными методами путём использования механизма расширений. Эти методы занимаются гарантированием соответствия контракту.</para>
/// </summary>
public static class Ensure
{
/// <summary>
/// <para>Gets an instance of the extension root class that contains helper methods to guarantee compliance with the contract.</para>
/// <para>Возвращает экземпляр класса корня-расширения, который содержит вспомогательные методы для гарантирования соответствия контракту.</para>
/// </summary>
public static readonly EnsureAlwaysExtensionRoot Always = new EnsureAlwaysExtensionRoot();
/// <summary>
/// <para>Gets an instance of the extension root class that contains helper methods to guarantee compliance with the contract, but are executed only during debugging.</para>
/// <para>Возвращает экземпляр класса корня-расширения, который содержит вспомогательные методы для гарантирования соответствия контракту, но выполняются только во время отладки.</para>
/// </summary>
public static readonly EnsureOnDebugExtensionRoot OnDebug = new EnsureOnDebugExtensionRoot();
}
}