You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class TagsCollection
{
public Dictionary<string, List<string>> Pages = new Dictionary<string, List<string>>();
public void Add(string tag, string url)
{
List<string> urls;
if (!Pages.TryGetValue(tag, out urls))
Pages.Add(tag, urls = new List<string>());
urls.Add(url);
}
}
becomes
var expected = @"new TagsCollection()
{
Pages[""Design""] = new List<String>()
Pages[0] = ""Articles\Design\MalleableCodeUsingDecorators.md""
Pages[""SOLID""] = new List<String>()
Pages[0] = ""Articles\Design\MalleableCodeUsingDecorators.md""
Pages[1] = ""BookReviews\Adaptive Code via CS.md""
Pages[""Single_Responsibility_Principle""] = new List<String>()
Pages[0] = ""Articles\Design\MalleableCodeUsingDecorators.md""
Pages[""Design_Pattern""] = new List<String>()
Pages[0] = ""Articles\Design\MalleableCodeUsingDecorators.md""
Pages[""Decorator""] = new List<String>()
Pages[0] = ""Articles\Design\MalleableCodeUsingDecorators.md""
Pages[""Wrapper""] = new List<String>()
Pages[0] = ""Articles\Design\MalleableCodeUsingDecorators.md""
Pages[""Cache""] = new List<String>()
Pages[0] = ""Articles\Design\MalleableCodeUsingDecorators.md""
Pages[""Book_Review""] = new List<String>()
Pages[0] = ""BookReviews\Adaptive Code via CS.md""
}";
The text was updated successfully, but these errors were encountered:
curly style output of
becomes
The text was updated successfully, but these errors were encountered: