using System.ComponentModel;
using Guard;

namespace Evos.Api.Samples.Infrastructure
{
    [Localizable(false)]
    internal static class SampleCheck
    {
        public static void That(bool condition, string message)
        {
            ThrowIf.Argument.IsNull(message, nameof(message));

            if (!condition)
            {
                throw new InvalidOperationException($"Проверка сэмпла не прошла: {message}");
            }
        }
    }
}
