Ejemplo n.º 1
0
        public void ReflectCategoryFromPipelineComponentWithoutStageCategoryThrows()
        {
            var component = new NoStageComponent();

            Assert.That(
                () => component.GetStageCategories(),
                Throws.ArgumentException.With.Message.EqualTo(
                    "NoStageComponent has not been associated with a pipeline stage category. Apply the ComponentCategoryAttribute with one of the stage categories available through Microsoft.BizTalk.Component.Interop.CategoryTypes."));
        }
Ejemplo n.º 2
0
        public void ReflectCategoryFromPipelineComponentWithoutStageCategoryThrows()
        {
            var component = new NoStageComponent();

            Action(() => component.GetStageCategories()).Should()
            .Throw <ArgumentException>()
            .WithMessage(
                "NoStageComponent has not been associated with a pipeline stage category. "
                + "Apply the ComponentCategoryAttribute with one of the stage categories available through Microsoft.BizTalk.Component.Interop.CategoryTypes.");
        }