public void TestDeferredActionAlways() { bool alwaysFlag = false; INetworkAction chat = new NetworkAction(); DeferredAction<INetworkAction> deferredAction = new DeferredAction<INetworkAction>() { Action = chat, Always = action => { alwaysFlag = true; } }; Assert.IsTrue(deferredAction.TryInsertAlways(chat)); Assert.IsTrue(alwaysFlag); }