public static void TestThrowIfNull()
{
Assert.Throws<ArgumentNullException>(delegate ()
{
object value = null;
ChessUtilities.ThrowIfNull(value, "value");
});
Assert.DoesNotThrow(delegate ()
{
Piece piece = new Bishop(Player.White);
ChessUtilities.ThrowIfNull(piece, "piece");
});
}