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.")); }
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."); }