public void Pass_New(IList <ParameterSetupData> parameters) { // Setup var xml = XmlGenerators.ProjectParamsFile(parameters); var path = Path.Combine(_workingFolder, Guid.NewGuid().ToString("N")); File.WriteAllText(path, xml); // Execute var projectParams = new ProjectParams(); projectParams.Initialize(path, null); // Assert Assert.NotNull(projectParams); foreach (var parameterSetupData in parameters) { var fullName = $"Project::{parameterSetupData.Name}"; Assert.True(projectParams.Parameters.ContainsKey(fullName)); Assert.Equal(parameterSetupData.Value, projectParams.Parameters[fullName].Value); Assert.Equal(parameterSetupData.Sensitive, projectParams.Parameters[fullName].Sensitive); Assert.Equal(parameterSetupData.DataType.ToString("G"), projectParams.Parameters[fullName].ParameterDataType.Name); } }