Ejemplo n.º 1
0
        public void TestLinkLeftToNull2()
        {
            var faultyContainer   = new FaultyBlocks();
            var involvedContainer = new InnocentBlocks();

            faultyContainer.LinkLeftToNull();
            faultyContainer.TransformAndLink(involvedContainer);
        }
Ejemplo n.º 2
0
        public void TestLinkLeftToNull2()
        {
            var faultyContainer   = new FaultyBlocks();
            var involvedContainer = new InnocentBlocks();

            faultyContainer.LinkLeftToNull();
            faultyContainer.LinkSubTypeTo(involvedContainer);
        }
Ejemplo n.º 3
0
        public async Task TestTermination()
        {
            var faultyContainer   = new FaultyBlocks();
            var involvedContainer = new InnocentBlocks();

            faultyContainer.TransformAndLink(involvedContainer);
            faultyContainer.LinkLeftToNull();

            faultyContainer.InputBlock.Post("test");

            await EnsureTaskFail <SystemException>(faultyContainer.CompletionTask);
            await EnsureTaskFail <LinkedContainerFailedException>(involvedContainer.CompletionTask);
        }
Ejemplo n.º 4
0
        public void TestLinkLeftToNull3()
        {
            var faultyContainer = new FaultyBlocks();

            faultyContainer.LinkLeftToNull();
        }