コード例 #1
0
        public void ToStringNoExpandedTargets()
        {
            const string name = "name";
            var info = new TargetInformation { Name = name };

            Assert.Equal(name, info.ToString());
        }
コード例 #2
0
        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());
        }
コード例 #3
0
        public void NotNullExpandedTargets()
        {
            var info = new TargetInformation();

            Assert.NotNull(info.ExpandedTargets);
        }