コード例 #1
0
        public void GivenAnArrayOfTheSameValue_WhenMaxPoolingIsApplied_ItShouldReturnTheValue()
        {
            double[] dataToPool = { 1.0, 1.0, 1.0, 1.0 };

            MaxPoolingStrategy poolingStrategy = new MaxPoolingStrategy();

            Assert.AreEqual(1.0, poolingStrategy.GetPooledResult(dataToPool));
        }
コード例 #2
0
        public void GivenAnArrayOfValues_WhenMaxPoolingIsApplied_ItShouldReturnTheLargestOfTheNumbers()
        {
            double[] dataToPool = { 1.0, 6.0, 3.0, 4.0 };

            MaxPoolingStrategy poolingStrategy = new MaxPoolingStrategy();

            Assert.AreEqual(6.0, poolingStrategy.GetPooledResult(dataToPool));
        }