public void Add_WktToken_AddsItemToTheCollection()
        {
            WktTokensBuffer target = new WktTokensBuffer();
            target.Add(_testData[0]);

            Assert.Equal(1, target.Count());
            Assert.Contains(_testData[0], target);
        }
예제 #2
0
        public void Add_WktToken_AddsItemToTheCollection()
        {
            WktTokensBuffer target = new WktTokensBuffer();

            target.Add(_testData[0]);

            Assert.Equal(1, target.Count());
            Assert.Contains(_testData[0], target);
        }
        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]);
            }
        }
예제 #4
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]);
            }
        }
예제 #6
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]);
            }
        }