public void EqualsOperatorWithDifferentOrderShouldReturnTrue() { NntpGroupsBuilder builder1 = new NntpGroupsBuilder().Add("group1").Add("group2"); NntpGroupsBuilder builder2 = new NntpGroupsBuilder().Add("group2").Add("group1"); Assert.True(builder1.Build() == builder2.Build()); }
public void AddNullShouldResultInEmptyCollection() { NntpGroupsBuilder builder = new NntpGroupsBuilder().Add((string)null); Assert.Equal(new string[0], builder.Groups); }
public void AddMultipleGroupsShouldResultInMultipleGroupsString() { NntpGroupsBuilder builder = new NntpGroupsBuilder().Add(new[] { "group1", "group2" }).Add("group3"); Assert.Equal(new [] { "group1", "group2", "group3" }, builder.Groups); }
public void AddSingleGroupShouldResultInSingleGroupString() { NntpGroupsBuilder builder = new NntpGroupsBuilder().Add("group1"); Assert.Equal(new[] { "group1" }, builder.Groups); }
public void AddNullEnumerableShouldResultInEmptyCollection() { NntpGroupsBuilder builder = new NntpGroupsBuilder().Add((IEnumerable <string>?)null); Assert.Equal(Array.Empty <string>(), builder.Groups); }
/// <summary> /// Creates a new instance of the <see cref="NzbBuilder"/> class. /// </summary> public NzbBuilder() { files = new List <File>(); groupsBuilder = new NntpGroupsBuilder(); metaData = new MultiValueDictionary <string, string>(); }