Ejemplo n.º 1
0
        public async Task VerifyRequestPredictionForOneUnsupportedCommandInHistory()
        {
            IReadOnlyList <string> history = new List <string>()
            {
                "git status"
            };

            _service.Commands = null;
            _service.History  = null;
            _service.ResetRequestPredictionTask();

            _azPredictor.OnCommandLineAccepted(MockObjects.PredictionClient, history);
            await _service.RequestPredictionTaskCompletionSource.Task;

            Assert.Equal(new List <string>()
            {
                AzPredictorConstants.CommandPlaceholder, AzPredictorConstants.CommandPlaceholder
            }, _service.Commands);
            Assert.Null(_service.History);
        }