private void CompareTags(TagsCollection expected, TagsCollection actual) { if (expected == null && actual == null) { return; } Assert.Equal(expected.Count, actual.Count); Assert.True(expected.All(tag => actual.Contains(tag))); }