/// <summary> /// Initializes a new instance of the PSExtensionDataSource class. /// </summary> /// <param name="extensionDataSource">The ExtensionDataSource to wrap.</param> public PSExtensionDataSource(ExtensionDataSource extensionDataSource) { Streams = extensionDataSource.Streams?.Select(x => x).ToList(); ExtensionName = extensionDataSource.ExtensionName; ExtensionSettings = extensionDataSource.ExtensionSettings; Name = extensionDataSource.Name; }
private static void AreEqual(ExtensionDataSource exp, ExtensionDataSource act) { if (exp != null) { Assert.Equal(exp.ExtensionName, act.ExtensionName); Assert.Equal(exp.ExtensionSettings.ToJson(), act.ExtensionSettings.ToJson()); Assert.Equal(exp.Name, act.Name); Assert.Equal(exp.Streams.ToJson(), act.Streams.ToJson()); } }