コード例 #1
0
            public void InitializesNewObjectWithValidArgument()
            {
                var attribute = default(PipelineStageAttribute);

                attribute = new PipelineStageAttribute();

                Assert.IsNotNull(attribute);
                Assert.IsNotNull(attribute.PipelineStages);
                Assert.AreEqual(0, attribute.PipelineStages.Length);

                var stage = PipelineStage.PostOperation;

                attribute = new PipelineStageAttribute(stage);

                Assert.IsNotNull(attribute);
                Assert.IsNotNull(attribute.PipelineStages);
                Assert.AreEqual(1, attribute.PipelineStages.Length);
                CollectionAssert.AreEqual(new [] { stage }, attribute.PipelineStages);
            }
コード例 #2
0
 public void ThrowsErrorForNullArgument()
 {
     var attribute = new PipelineStageAttribute(null);
 }