public void SomeFoo()
    {
        //use of unassigned variable here: obj
        BasicCommand obj = new BasicCommand((o) => SomeOtherFoo(o.Parameter1));

        obj.Execute();
    }
        public void T2()
        {
            // Arrange
            var invoked = false;
            var command = new BasicCommand(() => invoked = true);

            // Act
            command.Execute(new object());

            // Assert
            Assert.True(invoked);
        }