public void Constructor_TextReader_CreatesBufferWithSpecificTokens()
        {
            WktTokensBuffer target = new WktTokensBuffer(_testData);

            Assert.Equal(_testData.Length, target.Count());
            for (int i = 0; i < _testData.Length; i++) {
                Assert.Equal(_testData[i], target.ToArray()[i]);
            }
        }
Beispiel #2
0
        public void Constructor_TextReader_CreatesBufferWithSpecificTokens()
        {
            WktTokensBuffer target = new WktTokensBuffer(_testData);

            Assert.Equal(_testData.Length, target.Count());
            for (int i = 0; i < _testData.Length; i++)
            {
                Assert.Equal(_testData[i], target.ToArray()[i]);
            }
        }
        public void Add_IEnumerable_AddsItemsToTheCollection()
        {
            WktTokensBuffer target = new WktTokensBuffer();
            target.Add(_testData);

            Assert.Equal(_testData.Length, target.Count());
            for (int i = 0; i < _testData.Length; i++) {
                Assert.Equal(_testData[i], target.ToArray()[i]);
            }
        }
Beispiel #4
0
        public void Add_IEnumerable_AddsItemsToTheCollection()
        {
            WktTokensBuffer target = new WktTokensBuffer();

            target.Add(_testData);

            Assert.Equal(_testData.Length, target.Count());
            for (int i = 0; i < _testData.Length; i++)
            {
                Assert.Equal(_testData[i], target.ToArray()[i]);
            }
        }