예제 #1
0
        public void AddNegativeTop()
        {
            // Arrange
            var result = new TranslationResult();

            // Act && Assert
            Assert.Throws <ArgumentOutOfRangeException>(() => result.AddTop(-2));
        }
예제 #2
0
        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);
        }