//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldDoNothingWhenExcludingAValueInAnEmptySample() public virtual void ShouldDoNothingWhenExcludingAValueInAnEmptySample() { // given NonUniqueIndexSampler sampler = new DefaultNonUniqueIndexSampler(10); // when sampler.Exclude(_value, 1); sampler.Include(_value, 1); // then AssertSampledValues(sampler, 1, 1, 1); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldExcludeValuesFromTheCurrentSampling1() public virtual void ShouldExcludeValuesFromTheCurrentSampling1() { // given NonUniqueIndexSampler sampler = new DefaultNonUniqueIndexSampler(10); sampler.Include(_value, 5); sampler.Include(_value, 4); sampler.Include("bbb", 3); // when sampler.Exclude(_value, 3); // then AssertSampledValues(sampler, 9, 2, 9); }