public void Create_ThrowWhenLessThanTwoCounterNames() { var names = new[] { "name" }; var factory = new VotingPollFactory(); Assert.Throws <ArgumentException>(() => factory.Create(names)); }
public void Create_ThrowsWhenLessThanTwoCounterNames() { Throws <ArgumentException>(() => _factory.Create(_title, _description, new[] { "name" })); Throws <ArgumentException>(() => _factory.Create(_title, _description, new string[] { })); }