예제 #1
0
        public void ClearSamplesTest()
        {
            int numSamples = 20; // TODO: Initialize to an appropriate value
            MA target = new MA(numSamples); // TODO: Initialize to an appropriate value
            target.AddSample(3.2);
            target.AddSample(1.5);
            target.ClearSamples();

            Assert.AreEqual(target.Samples.Count, 0);
        }
예제 #2
0
        public void CountTest()
        {
            int numSamples = 20; // TODO: Initialize to an appropriate value
            MA target = new MA(numSamples); // TODO: Initialize to an appropriate value

            target.ClearSamples();
            target.AddRange(samples);

            var actual = target.Value;
            Assert.AreEqual(expected, actual);
        }