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); }