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