示例#1
0
        public void GetExcludedRowCount_EmptyList_0()
        {
            var values = new int[0];

            var sampler = new NoneSampler <int>();

            sampler.Build(values);

            Assert.That(sampler.GetExcludedRowCount, Is.EqualTo(0));
        }
示例#2
0
        public void IsSampled_EmptyList_True()
        {
            var values = new int[0];

            var sampler = new NoneSampler <int>();

            sampler.Build(values);

            Assert.That(sampler.GetIsSampled, Is.True);
        }
示例#3
0
        public void GetResult_EmptyList_Empty()
        {
            var values = new int[0];

            var sampler = new NoneSampler <int>();

            sampler.Build(values);

            Assert.That(sampler.GetResult(), Is.Empty);
        }
示例#4
0
        public void GetExcludedRowCount_NonEmptyList_10()
        {
            var values = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

            var sampler = new NoneSampler <int>();

            sampler.Build(values);

            Assert.That(sampler.GetExcludedRowCount, Is.EqualTo(10));
        }
示例#5
0
        public void IsSampled_NonEmptyList_True()
        {
            var values = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

            var sampler = new NoneSampler <int>();

            sampler.Build(values);

            Assert.That(sampler.GetIsSampled, Is.True);
        }
示例#6
0
        public void GetResult_NonEmptyList_Empty()
        {
            var values = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

            var sampler = new NoneSampler <int>();

            sampler.Build(values);

            Assert.That(sampler.GetResult(), Is.Empty);
        }