public void CtorSavesRunspaceReference() { // Arrange. var expectedRunspace = RunspaceFactory.CreateRunspace(); // Act. var wrapper = new RunspaceWrapper(expectedRunspace); // Assert. Assert.AreEqual(expectedRunspace, wrapper.Runspace); }
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)); }