public void AddTop(int top) { if (top <= 0) { throw new ArgumentOutOfRangeException(nameof(top)); } _tableQuery.TakeCount = top; }
public void AddNegativeTop() { // Arrange var result = new TranslationResult(); // Act && Assert Assert.Throws<ArgumentOutOfRangeException>(() => result.AddTop(-2)); }