public void SaveNetwork()
        {
            // Arrange
            ANeuralNetwork ANN = new ANeuralNetwork();

            ANN.Create_Network(new List <int> {
                2, 3, 1
            });
            Exception expectedException = null;

            // Act
            try
            {
                ANN.Save_Network("TestSave.net");
            }
            catch (Exception ex)
            {
                expectedException = ex;
            }

            // Assert
            Assert.IsNull(expectedException);
        }
示例#2
0
 public void SaveNetwork(string Filename)
 {
     ANN.Save_Network(Filename);
 }