static StreamReader MockYaml(params object[] args) { var str = new StringBuilder("sonarr:"); const string templateYaml = "\n - base_url: {0}\n api_key: abc"; str.Append(args.Aggregate("", (current, p) => current + templateYaml.FormatWith(p))); return(StreamBuilder.FromString(str.ToString())); }
public void FromString_UsingString_ShouldOutputSameString() { var stream = StreamBuilder.FromString("test"); stream.ReadToEnd().Should().Be("test"); }