public AphidScopeObjectAutocompletionSource ConstructorTest(AphidObject currentScope)
        {
            AphidScopeObjectAutocompletionSource target = new AphidScopeObjectAutocompletionSource(currentScope)
            ;

            return(target);
            // TODO: add assertions to method AphidScopeObjectAutocompletionSourceTest.ConstructorTest(AphidObject)
        }
        public IEnumerable <Autocomplete> GetWordsTest(
            [PexAssumeUnderTest] AphidScopeObjectAutocompletionSource target,
            string text,
            int offset,
            bool allowEmptySearch,
            out string searchBuffer
            )
        {
            IEnumerable <Autocomplete> result = target.GetWords(text, offset, allowEmptySearch, out searchBuffer)
            ;

            return(result);
            // TODO: add assertions to method AphidScopeObjectAutocompletionSourceTest.GetWordsTest(AphidScopeObjectAutocompletionSource, String, Int32, Boolean, String&)
        }
예제 #3
0
파일: App.cs 프로젝트: 5l1v3r1/Aphid
        public App(Stream input, Stream output)
            : base(input, output)
        {
            _documents          = new TextDocumentManager();
            _documents.Changed += Documents_Changed;
            _interpreter        = new AphidInterpreter();
            _interpreter.Interpret(@"
                #'std';
                #'io/compression';
                #'gui/winforms';
                #'gui/wpf';
                #'system/cryptography';
                #'system/wmi';
                #'system/machine';
                #'system/nuget';
                #'system/process';
                #'remoting/remote';
                #'remoting/ipc';
                #'net/tcp';
                #'net/udp';
                #'net/web';
                //#'meta';
                //#'compiler';
                using System;
                using System.Collections.Generic;
                using System.IO;
                using System.Linq;
                using System.Text;
                using System.Threading.Tasks;

            ");

            _interpreter.EnterScope();

            _scope = new AphidScopeObjectAutocompletionSource(_interpreter.CurrentScope);
        }
 public void DisposeTest([PexAssumeUnderTest] AphidScopeObjectAutocompletionSource target)
 {
     target.Dispose();
     // TODO: add assertions to method AphidScopeObjectAutocompletionSourceTest.DisposeTest(AphidScopeObjectAutocompletionSource)
 }