AddTop() public method

Adds a required count of query elements.
public AddTop ( int top ) : void
top int Count of elements.
return void
        public void AddNegativeTop()
        {
            // Arrange
            var result = new TranslationResult();

            // Act && Assert
            Assert.Throws<ArgumentOutOfRangeException>(() => result.AddTop(-2));
        }
        public void AddTop()
        {
            // Arrange
            var result = new TranslationResult();
            const int count = 5;

            // Act
            result.AddTop(count);

            // Assert
            Assert.NotNull(result.TableQuery);
            Assert.Equal(count, result.TableQuery.TakeCount);
        }