public void GetResult_LargerList_3Members() { var values = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; var sampler = new BasicSampler <int>(3, 3); sampler.Build(values); Assert.That(sampler.GetResult().Count(), Is.EqualTo(3)); }
public void IsSampled_EmptyList_False() { var values = new int[0]; var sampler = new BasicSampler <int>(20, 20); sampler.Build(values); Assert.That(sampler.GetIsSampled, Is.False); }
public void GetExcludedRowCount_EmptyList_0() { var values = new int[0]; var sampler = new BasicSampler <int>(20, 20); sampler.Build(values); Assert.That(sampler.GetExcludedRowCount, Is.EqualTo(0)); }
public void GetExcludedRowCount_NonEmptyList_0() { var values = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; var sampler = new BasicSampler <int>(20, 20); sampler.Build(values); Assert.That(sampler.GetExcludedRowCount, Is.EqualTo(0)); }
public void GetResult_EmptyList_Empty() { var values = new int[0]; var sampler = new BasicSampler <int>(20, 20); sampler.Build(values); Assert.That(sampler.GetResult(), Is.Empty); }
public void GetExcludedRowCount_Threshold_0() { var values = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; var sampler = new BasicSampler <int>(15, 4); sampler.Build(values); Assert.That(sampler.GetExcludedRowCount, Is.EqualTo(0)); }
public void IsSampled_NonEmptyList_False() { var values = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; var sampler = new BasicSampler <int>(20, 20); sampler.Build(values); Assert.That(sampler.GetIsSampled, Is.False); }
public void GetResult_NonEmptyList_Empty() { var values = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; var sampler = new BasicSampler <int>(20, 20); sampler.Build(values); Assert.That(sampler.GetResult().Count(), Is.EqualTo(10)); }
public void IsSampled_Threshold_False() { var values = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; var sampler = new BasicSampler <int>(15, 4); sampler.Build(values); Assert.That(sampler.GetIsSampled, Is.False); }
public void GetResult_Threshold_3Members() { var values = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; var sampler = new BasicSampler <int>(15, 4); sampler.Build(values); Assert.That(sampler.GetResult().Count(), Is.EqualTo(10)); }
public void GetExcludedRowCount_MaxSampled_7() { var values = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; var sampler = new BasicSampler <int>(3, 4); sampler.Build(values); Assert.That(sampler.GetExcludedRowCount, Is.EqualTo(6)); }
public void IsSampled_MaxSampled_True() { var values = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; var sampler = new BasicSampler <int>(3, 4); sampler.Build(values); Assert.That(sampler.GetIsSampled, Is.True); }