public void ToStringNoExpandedTargets() { const string name = "name"; var info = new TargetInformation { Name = name }; Assert.Equal(name, info.ToString()); }
public void ToStringWithExpandedTargets() { const string group = "name"; const string expanded1 = "expanded1"; const string expanded2 = "expanded2"; var expandedTargets = new[] { expanded1, expanded2 }; var info = new TargetInformation { Name = group, ExpandedTargets = expandedTargets }; var groupedToString = String.Format(LocalizedStrings.TargetInformationGroups, group, String.Join(CultureInfo.CurrentCulture.TextInfo.ListSeparator + " ", expandedTargets)); Assert.Equal(groupedToString, info.ToString()); }
public void NotNullExpandedTargets() { var info = new TargetInformation(); Assert.NotNull(info.ExpandedTargets); }