Example #1
0
        public void Create_ThrowWhenLessThanTwoCounterNames()
        {
            var names   = new[] { "name" };
            var factory = new VotingPollFactory();

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