public void NothingTest() { var nothing = new Nothing <object>(); var justHandlerExecuted = false; var nothingHandlerExecuted = false; nothing .Just(_ => justHandlerExecuted = true) .Nothing(() => nothingHandlerExecuted = true); Assert.False(justHandlerExecuted); Assert.True(nothingHandlerExecuted); }