Exemple #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);
        }
        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;
        }
        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;
        }