public void Setup()
 {
     factory = new ConvolutionNetworkFactory(.5, 19, 5);
     inps    = new List <IPipe>();
     inps.Fill((i) => new IPipe(), 5, (i, p) => p.SetValue(i));
     outps.Fill((i) => new IPipe(), 5, (i, p) => p.SetValue(i));
 }
 public void NetworkCellCountGreaterThan0()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => factory = new ConvolutionNetworkFactory(.5, 20, -1));
 }
 public void InterconectivityMustBe0To1()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => factory = new ConvolutionNetworkFactory(-0.01, 20, 5));
     Assert.Throws <ArgumentOutOfRangeException>(() => factory = new ConvolutionNetworkFactory(1.01, 20, 5));
 }