public bool IsSet { get; set; }
public interface IDoSomething
void DoIt(Action<XOptions> options);
var dosomething = Substitute.For<IDoSomething>();
dosomething.DoIt(o => o.IsSet = true);
dosomething.Received(1).DoIt(Arg.Any<Action<XOptions>>());
dosomething.Received(1).DoIt(o => o.IsSet = true);