コード例 #1
0
        public void RecognizeTest()
        {
            BackPropagationThreeLayers target = new BackPropagationThreeLayers(); // TODO: Initialize to an appropriate value

            double[] Input                    = null;                             // TODO: Initialize to an appropriate value
            string   MatchedHigh              = string.Empty;                     // TODO: Initialize to an appropriate value
            string   MatchedHighExpected      = string.Empty;                     // TODO: Initialize to an appropriate value
            double   OutputValueHight         = 0F;                               // TODO: Initialize to an appropriate value
            double   OutputValueHightExpected = 0F;                               // TODO: Initialize to an appropriate value
            string   MatchedLow               = string.Empty;                     // TODO: Initialize to an appropriate value
            string   MatchedLowExpected       = string.Empty;                     // TODO: Initialize to an appropriate value
            double   OutputValueLow           = 0F;                               // TODO: Initialize to an appropriate value
            double   OutputValueLowExpected   = 0F;                               // TODO: Initialize to an appropriate value

            target.Recognize(Input, ref MatchedHigh, ref OutputValueHight, ref MatchedLow, ref OutputValueLow);
            Assert.AreEqual(MatchedHighExpected, MatchedHigh);
            Assert.AreEqual(OutputValueHightExpected, OutputValueHight);
            Assert.AreEqual(MatchedLowExpected, MatchedLow);
            Assert.AreEqual(OutputValueLowExpected, OutputValueLow);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }