2 writes to _stream
Microsoft.Build.Framework.UnitTests (2)
CustomEventArgSerialization_Tests.cs (2)
42_stream = new MemoryStream(); 53_stream = null;
154 references to _stream
Microsoft.Build.Framework.UnitTests (154)
CustomEventArgSerialization_Tests.cs (154)
43_writer = new BinaryWriter(_stream); 44_reader = new BinaryReader(_stream); 67long streamWriteEndPosition = _stream.Position; 70_stream.Position = 0; 73_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 77_stream.Position = 0; 83streamWriteEndPosition = _stream.Position; 86_stream.Position = 0; 89_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 93_stream.Position = 0; 99streamWriteEndPosition = _stream.Position; 102_stream.Position = 0; 106_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 132long streamWriteEndPosition = _stream.Position; 135_stream.Position = 0; 138_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 143_stream.Position = 0; 149streamWriteEndPosition = _stream.Position; 152_stream.Position = 0; 155_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 160_stream.Position = 0; 166streamWriteEndPosition = _stream.Position; 169_stream.Position = 0; 172_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 177_stream.Position = 0; 183streamWriteEndPosition = _stream.Position; 186_stream.Position = 0; 189_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 219_stream.Position = 0; 226_stream.Position = 0; 234_stream.Position = 0; 241_stream.Position = 0; 249_stream.Position = 0; 265long streamWriteEndPosition = _stream.Position; 268_stream.Position = 0; 271_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 276_stream.Position = 0; 283streamWriteEndPosition = _stream.Position; 286_stream.Position = 0; 289_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 294_stream.Position = 0; 301streamWriteEndPosition = _stream.Position; 304_stream.Position = 0; 307_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 335long streamWriteEndPosition = _stream.Position; 338_stream.Position = 0; 341_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 345_stream.Position = 0; 352streamWriteEndPosition = _stream.Position; 355_stream.Position = 0; 358_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 362_stream.Position = 0; 369streamWriteEndPosition = _stream.Position; 372_stream.Position = 0; 375_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 388long streamWriteEndPosition = _stream.Position; 391_stream.Position = 0; 395_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 399_stream.Position = 0; 406streamWriteEndPosition = _stream.Position; 409_stream.Position = 0; 412_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 416_stream.Position = 0; 423streamWriteEndPosition = _stream.Position; 426_stream.Position = 0; 429_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 442long streamWriteEndPosition = _stream.Position; 445_stream.Position = 0; 448_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 453_stream.Position = 0; 459streamWriteEndPosition = _stream.Position; 462_stream.Position = 0; 465_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 470_stream.Position = 0; 476streamWriteEndPosition = _stream.Position; 479_stream.Position = 0; 482_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 487_stream.Position = 0; 493streamWriteEndPosition = _stream.Position; 496_stream.Position = 0; 499_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 527long streamWriteEndPosition = _stream.Position; 530_stream.Position = 0; 533_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 539_stream.Position = 0; 545streamWriteEndPosition = _stream.Position; 548_stream.Position = 0; 551_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 557_stream.Position = 0; 564streamWriteEndPosition = _stream.Position; 567_stream.Position = 0; 570_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 594long streamWriteEndPosition = _stream.Position; 597_stream.Position = 0; 602_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 658long streamWriteEndPosition = _stream.Position; 661_stream.Position = 0; 664_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 669_stream.Position = 0; 675streamWriteEndPosition = _stream.Position; 678_stream.Position = 0; 681_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream end positions should be equal" 686_stream.Position = 0; 692streamWriteEndPosition = _stream.Position; 695_stream.Position = 0; 698_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 725long streamWriteEndPosition = _stream.Position; 728_stream.Position = 0; 731_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 736_stream.Position = 0; 743streamWriteEndPosition = _stream.Position; 746_stream.Position = 0; 749_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 754_stream.Position = 0; 760streamWriteEndPosition = _stream.Position; 762_stream.Position = 0; 765_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 791long streamWriteEndPosition = _stream.Position; 794_stream.Position = 0; 797_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 802_stream.Position = 0; 808streamWriteEndPosition = _stream.Position; 811_stream.Position = 0; 814_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 819_stream.Position = 0; 825streamWriteEndPosition = _stream.Position; 827_stream.Position = 0; 830_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 855long streamWriteEndPosition = _stream.Position; 858_stream.Position = 0; 861_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 865_stream.Position = 0; 872streamWriteEndPosition = _stream.Position; 875_stream.Position = 0; 878_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 883_stream.Position = 0; 890streamWriteEndPosition = _stream.Position; 893_stream.Position = 0; 896_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 920long streamWriteEndPosition = _stream.Position; 923_stream.Position = 0; 926_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 931_stream.Position = 0; 938streamWriteEndPosition = _stream.Position; 941_stream.Position = 0; 944_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 949_stream.Position = 0; 956streamWriteEndPosition = _stream.Position; 959_stream.Position = 0; 962_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match" 1038_stream.Position = 0; 1040long streamWriteEndPosition = _stream.Position; 1042_stream.Position = 0; 1045_stream.Position.ShouldBe(streamWriteEndPosition); // "Stream End Positions Should Match"