public void should_return_false_if_the_grouping_definition_has_no_fields() { _populationAnalyses = A.Fake <PopulationAnalysis>(); sut = new PopulationAnalysisGroupingField(new FixedLimitsGroupingDefinition(null)) { Name = _sutName, PopulationAnalysis = _populationAnalyses }; sut.IsDerivedTypeFor <PopulationAnalysisParameterField>().ShouldBeFalse(); }
public void should_return_true_if_the_derived_field_as_the_accurate_type() { A.CallTo(() => _derivedField.IsDerivedTypeFor(typeof(PopulationAnalysisParameterField))).Returns(true); sut.IsDerivedTypeFor <PopulationAnalysisParameterField>().ShouldBeTrue(); }