Exemplo n.º 1
0
        public void GetOutput_ProperlyInitialized_SameAsFromNeuronOutput()
        {
            var fromNeruonMock = new Mock <INeuron>();

            fromNeruonMock.Setup(x => x.CalculateOutput()).Returns(23);

            var toNeruonMock = new Mock <INeuron>();

            var connection = new Synapse(fromNeruonMock.Object, toNeruonMock.Object, 111);

            Assert.AreEqual(23, connection.GetOutput());
        }