public void Create_ThrowIfLessThenTwoCounterNames() { _request.Names = new[] { "name" }; Throws <ArgumentException>(() => _factory.Create(_request)); _request.Names = new string[] { }; Throws <ArgumentException>(() => _factory.Create(_request)); }
public void Create_ThrowsWhenLessThanTownCounterNames() { _request.Names = new[] { "name" }; Assert.Throws <ArgumentException>(() => _factory.Create(_request)); _request.Names = new string[] { }; Assert.Throws <ArgumentException>(() => _factory.Create(_request)); }