public void should_return_false_otherwise() { var mergedDimension = new MergedDimensionFor <IParameter>(_nonEquivalentDimension, new[] { _nonEquivalentDimension, }, new[] { _dimensionConverter }); _dimension.IsEquivalentTo(mergedDimension).ShouldBeFalse(); }
public void should_return_true_if_the_dimension_is_equivalent_to_any_of_the_target_dimension() { var mergedDimension = new MergedDimensionFor <IParameter>(_nonEquivalentDimension, new[] { _equivalentDimension, }, new[] { _dimensionConverter }); _dimension.IsEquivalentTo(mergedDimension).ShouldBeTrue(); }
public void should_return_false_otherwise() { var mergedDimension1 = new MergedDimensionFor <IParameter>(_nonEquivalentDimension, new[] { _nonEquivalentDimension, }, new List <IDimensionConverterFor>()); var mergedDimension2 = new MergedDimensionFor <IParameter>(_dimension, new[] { _equivalentDimension, }, new List <IDimensionConverterFor>()); mergedDimension1.IsEquivalentTo(mergedDimension2).ShouldBeFalse(); }
public void should_return_true_if_the_merge_dimensions_have_equivalent_source_and_target_dimensions() { var mergedDimension1 = new MergedDimensionFor <IParameter>(_nonEquivalentDimension, new[] { _equivalentDimension, }, new List <IDimensionConverterFor>()); var mergedDimension2 = new MergedDimensionFor <IParameter>(_dimension, new[] { _nonEquivalentDimension, }, new List <IDimensionConverterFor>()); mergedDimension1.IsEquivalentTo(mergedDimension2).ShouldBeTrue(); }
protected override void Because() { _res = sut.MergedDimensionFor(_parameter) as MergedDimensionFor <IParameter>; }
public void should_return_true_if_the_dimension_is_equivalent_to_the_source_dimension() { var mergedDimension = new MergedDimensionFor <IParameter>(_equivalentDimension, new [] { _nonEquivalentDimension, }, new List <IDimensionConverterFor>()); _dimension.IsEquivalentTo(mergedDimension).ShouldBeTrue(); }