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();
        }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }
예제 #5
0
 protected override void Because()
 {
     _res = sut.MergedDimensionFor(_parameter) as MergedDimensionFor <IParameter>;
 }
예제 #6
0
        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();
        }