private void AssertValue(INetQObject qObject, string method, object value, Action <object> assert) { var raised = false; var handler = qObject.AttachSignal($"testSignal{method}", parameters => { raised = true; parameters.Count.Should().Be(1); assert(parameters[0]); }); using (handler) { assert(qObject.InvokeMethod($"testSlot{method}", value)); raised.Should().BeTrue(); } }
public void TestSlotInt() { _qObject.InvokeMethod("testSlotInt", 3); }