code/Kingdom.OrTools.Sat.CodeGeneration.Tests/Extensions/AssertionExtensionMethods.cs
/// <summary>
/// Asserts that the <paramref name="obj"/> is <see cref="Assert.NotNull"/>
/// Optionally performs an additional <paramref name="verify"/> step.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="obj"></param>
/// <param name="verify"></param>
/// <returns></returns>
Asserts that the  is
Optionally performs an additional  step.
Asserts that the is Optionally performs an additional step .
public static T AssertNotNull<T>(this T obj, Action<T> verify = null)
        {
            Assert.NotNull(obj);
            verify?.Invoke(obj);
            return obj;
        }
public static T AssertNotNull < T > ( this T obj , Action < T > verify = null ) { Assert . NotNull ( obj ) ; verify ? . Invoke ( obj ) ; return obj ; }
Asserts that the  is
Optionally performs an additional  step.
Asserts that the is Optionally performs an additional step .
None
T
this
verify
Action<T>
None
obj
None
typeparam
None