public void InitializesNewObjectWithValidArgument()
            {
                var attribute = default(PipelineExecutionModeAttribute);

                attribute = new PipelineExecutionModeAttribute();

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

                var mode = ExecutionMode.Synchronous;

                attribute = new PipelineExecutionModeAttribute(mode);

                Assert.IsNotNull(attribute);
                Assert.IsNotNull(attribute.ExecutionModes);
                Assert.AreEqual(1, attribute.ExecutionModes.Length);
                CollectionAssert.AreEqual(new [] { mode }, attribute.ExecutionModes);
            }
 public void ThrowsErrorForNullArgument()
 {
     var attribute = new PipelineExecutionModeAttribute(null);
 }