Esempio n. 1
0
        public void TestAvgProjectionComesBackAsDouble()
        {
            // sharded avg calculation assumes that the avg projection implementation
            // returns a Double, so let's make sure that assumption is valid
            AvgProjection ap = new AvgProjection("yam");

            IType[] types = ap.GetTypes(null, null);
            Assert.NotNull(types);
            Assert.That(types, Has.Length.EqualTo(1));
            Assert.That(types[0], Is.InstanceOf <DoubleType>());
        }
        public void TestAvgProjectionComesBackAsDouble()
        {
            // sharded avg calculation assumes that the avg projection implementation
            // returns a Double, so let's make sure that assumption is valid
            AvgProjection ap = new AvgProjection("yam");

            IType[] types = ap.GetTypes(null, null);
            Assert.NotNull(types);
            Assert.AreEqual(1, types.Length);
            Assert.AreEqual(typeof(DoubleType), types[0]);
        }