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

            _request.Names = new string[] { };
            Assert.Throws <ArgumentException>(() => _factory.Create(_request));
        }