public void Setup() { this.runtimeStub = new RuntimeStub(); this.dataSource = new SDKRgbBitmapDataSource(runtimeStub); this.newDataCalled = false; this.dataSource.NewDataAvailable += new NewDataHandler<System.Drawing.Bitmap>(dataSource_NewDataAvailable); }
public override void Setup() { base.Setup(); this.runtimeStub = new RuntimeStub(); this.clusterFactoryMock = CreateMock<IClusterFactory>(); this.filterMock = CreateMock<IDepthPointFilter<ImageFrame>>(); this.clusterDataSource = new SDKClusterDataSource(this.runtimeStub, this.clusterFactoryMock.Object, this.filterMock.Object); this.clusterDataSource.Start(); }
public static List<Token> LexWeak(string text) { IEnumerator<char> _it433 = null; char c = default(char); // item 432 Init(); var lexer = new LexerMachineWeak(); var runtime = new RuntimeStub(); int id = 0; // item 452 var msg = new Message(); // item 4330001 _it433 = ((IEnumerable<char>)text).GetEnumerator(); while (true) { // item 4330002 if (_it433.MoveNext()) { } else { break; } // item 4330004 c = _it433.Current; // item 453 msg.C = c; // item 437 if (c == '_') { // item 445 msg.Code = Letter; } else { // item 440 if (Char.IsLetter(c)) { // item 445 msg.Code = Letter; } else { // item 442 if (Char.IsDigit(c)) { // item 446 msg.Code = Digit; } else { // item 447 if (IsOperator(c)) { // item 450 msg.Code = Operator; } else { // item 451 msg.C = ' '; msg.Code = Whitespace; } } } } // item 454 lexer.OnMessage(runtime, id, msg); } // item 455 msg.C = ' '; msg.Code = Whitespace; lexer.OnMessage(runtime, id, msg); // item 435 return lexer.Tokens; }
public static List <Token> LexWeak(string text) { IEnumerator <char> _it433 = null; char c = default(char); // item 432 Init(); var lexer = new LexerMachineWeak(); var runtime = new RuntimeStub(); int id = 0; // item 452 var msg = new Message(); // item 4330001 _it433 = ((IEnumerable <char>)text).GetEnumerator(); while (true) { // item 4330002 if (_it433.MoveNext()) { } else { break; } // item 4330004 c = _it433.Current; // item 453 msg.C = c; // item 437 if (c == '_') { // item 445 msg.Code = Letter; } else { // item 440 if (Char.IsLetter(c)) { // item 445 msg.Code = Letter; } else { // item 442 if (Char.IsDigit(c)) { // item 446 msg.Code = Digit; } else { // item 447 if (IsOperator(c)) { // item 450 msg.Code = Operator; } else { // item 451 msg.C = ' '; msg.Code = Whitespace; } } } } // item 454 lexer.OnMessage(runtime, id, msg); } // item 455 msg.C = ' '; msg.Code = Whitespace; lexer.OnMessage(runtime, id, msg); // item 435 return(lexer.Tokens); }
public void Setup() { this.runtimeStub = new RuntimeStub(); this.dataSource = new SDKDepthBitmapDataSource(runtimeStub); }