Esempio n. 1
0
        public void CtorSavesRunspaceReference()
        {
            // Arrange.
            var expectedRunspace = RunspaceFactory.CreateRunspace();

            // Act.
            var wrapper = new RunspaceWrapper(expectedRunspace);

            // Assert.
            Assert.AreEqual(expectedRunspace, wrapper.Runspace);
        }
Esempio n. 2
0
        public void CreateNestedPipelineWrappedPipeline()
        {
            // Arrange.
            var expectedRunspace = RunspaceFactory.CreateRunspace();
            var wrapper          = new RunspaceWrapper(expectedRunspace);

            // Act.
            var pipeline = wrapper.CreateNestedPipeline("", false);

            // Assert.
            Assert.IsInstanceOfType(pipeline, typeof(PipelineWrapper));
        }