public void GetParametersString() { var t = new Transistor(0.6M, 0.046M, 1.0M); var expect = new[] { $"Threshold: {0.6M}", $"Sigma: {0.046M}", $"NumberOfSigma: {1.0M}" }; foreach (var item in t.GetParameterStrings().Zip(expect, (s, k) => new{ s, k })) { Assert.Equal(item.k, item.s); } }