Пример #1
0
        public void ReadPipelineWithGates()
        {
            var configuration = LoadConfiguration(
                            AssemblyHelper.RetrieveExampleFile("PipelineWithGates"));

            Assert.IsNotNull(configuration);
            Assert.AreEqual("2.0", configuration.Version.ToString(2));
            var gate = new Gate("Gate1", new Project("Project2"), new Project("Project3"));
            this.VerifyChildren(
                configuration.Children,
                new Pipeline("Pipeline1", new Project("Project1"), gate, new Project("Project4")));
        }
Пример #2
0
 public void WritePipelineWithGates()
 {
     var gate = new Gate("Gate1", new Project("Project2"), new Project("Project3"));
     var configuration = new Pipeline(
         "Pipeline1",
         new Project("Project1"),
         gate,
         new Project("Project4"));
     PerformSerialisationTest(configuration, "PipelineWithGates");
 }
Пример #3
0
 public void WriteSimpleGate()
 {
     var configuration = new Gate(
         "Gate1",
         new Project("Project1"),
         new Project("Project2"));
     PerformSerialisationTest(configuration, "SimpleGate");
 }