Пример #1
0
        public ReferenceItem(string name, IVsReferenceProperties properties)
        {
            Requires.NotNullOrEmpty(name, nameof(name));

            Name       = name;
            Properties = properties;
        }
        private static void AssertContainsProperty(string name, string value, IVsReferenceProperties properties)
        {
            var property = properties.Item(name);

            Assert.NotNull(property);
            Assert.Equal(name, property.Name);
            Assert.Equal(value, property.Value);
        }
Пример #3
0
        public VsReferenceItem(string name, IVsReferenceProperties properties)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentException("Argument cannot be null or empty", nameof(name));
            }

            if (properties == null)
            {
                throw new ArgumentNullException(nameof(properties));
            }

            Name       = name;
            Properties = properties;
        }
Пример #4
0
        public VsReferenceItem(string name, IVsReferenceProperties properties)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentException(ProjectManagement.Strings.Argument_Cannot_Be_Null_Or_Empty, nameof(name));
            }

            if (properties == null)
            {
                throw new ArgumentNullException(nameof(properties));
            }

            Name       = name;
            Properties = properties;
        }