示例#1
0
        public void StringCalls(string input, string output, string requiredCandidate)
        {
            var candidates = new List <string>();

            mdb.FindCandidates(x => { candidates.Add(x); }, input, input, output, 2, token);
            Assert.That(candidates, Contains.Item(requiredCandidate));
        }
        private void BtnSearch_OnClick(object sender, RoutedEventArgs e)
        {
            Candidates.Clear();

            Task.Factory.StartNew(() =>
                                  dynamicMemberDatabase.FindCandidates(parsedInputValue, parsedInputValue, parsedOutputValue, 0))
            .ContinueWith(task =>
            {
                foreach (var x in task.Result)
                {
                    Candidates.Add(x);
                }
            }, TaskScheduler.FromCurrentSynchronizationContext());
        }
示例#3
0
 public void StringCalls(string input, string output, string requiredCandidate)
 {
     Assert.That(mdb.FindCandidates(input, input, output, 2), Contains.Item(requiredCandidate));
 }