Exemplo n.º 1
0
        public void Filter_DoesNotLimitConnectionOnSecondFilter_WhenFirstLimitsHimButSecondDoesNot()
        {
            var firstConnection = CreateMdConnection(0, 10, MarkdownConnectionType.Double);

            filter.Filter(firstConnection);
            var newFilter = new FilterMeaninglessMdConnection();

            newFilter.Filter(firstConnection)
            .ConnectionType
            .Should().Be(MarkdownConnectionType.Double);
        }
Exemplo n.º 2
0
        public void Filter_ReturnsSameTypeItem_WhenGetsOnlyOneItem(int firstIndex, int secondIndex, MarkdownConnectionType type)
        {
            var mdConnection     = CreateMdConnection(firstIndex, secondIndex, type);
            var actualConnection = filter.Filter(mdConnection);

            actualConnection.ConnectionType.Should().Be(mdConnection.ConnectionType);
        }