public async Task Changes_TargetConnectionState(ConnectionState fromState, ConnectionState toState)
        {
            connection.SetTargetState(fromState);
            var changeTargetStateCommand = new ChangeTargetConnectionStateCommand(connection.Id, toState);
            await changeTargetStateCommand.Process(virtualStudio);

            Assert.AreEqual(toState, connection.TargetState);
        }
        public async Task Does_not_change_TargetConnectionState(ConnectionState fromState, ConnectionState toState)
        {
            connection.SetTargetState(fromState);
            var changeTargetStateCommand = new ChangeTargetConnectionStateCommand(connection.Id, toState);
            await changeTargetStateCommand.Process(virtualStudio);

            Assert.IsTrue(changeTargetStateCommand.Error.Type == ErrorType.InvalidArgument);
            Assert.AreNotEqual(toState, connection.TargetState);
            Assert.AreEqual(fromState, connection.TargetState);
        }