コード例 #1
0
        public void ShouldConvertToArray()
        {
            // arrange
            var target = new ObservableQueue<string>();
            var expected = new[] { "1", "2", "3" };

            target.Enqueue( "1" );
            target.Enqueue( "2" );
            target.Enqueue( "3" );

            // act
            var actual = target.ToArray();

            // assert
            Assert.True( expected.SequenceEqual( actual ) );
        }