namespace Gu.Wpf.Geometry.Tests
{
    using System;
    using System.Linq;
    using System.Reflection;
    using System.Windows.Markup;

    using NUnit.Framework;

    public class NamespacesTests
    {
        private const string Uri = "http://gu.se/Geometry";

        private readonly Assembly assembly;

        public NamespacesTests()
        {
            this.assembly = typeof(GradientPath).Assembly;
        }

        [Test]
        public void XmlnsDefinitions()
        {
            string[] skip = { ".Annotations", ".Properties", "XamlGeneratedNamespace" };

            var strings = this.assembly.GetTypes()
                                   .Select(x => x.Namespace)
                                   .Distinct()
                                   .Where(x => x != null && !skip.Any(x.EndsWith))
                                   .OrderBy(x => x)
                                   .ToArray();
            var attributes = this.assembly.CustomAttributes.Where(x => x.AttributeType == typeof(XmlnsDefinitionAttribute))
                                      .ToArray();
            var actuals = attributes.Select(a => a.ConstructorArguments[1].Value)
                                    .OrderBy(x => x);
            foreach (var s in strings)
            {
                Console.WriteLine(@"[assembly: XmlnsDefinition(""{0}"", ""{1}"")]", Uri, s);
            }

            Assert.AreEqual(strings, actuals);
            foreach (var attribute in attributes)
            {
                Assert.AreEqual(Uri, attribute.ConstructorArguments[0].Value);
            }
        }

        [Test]
        public void XmlnsPrefix()
        {
            var attributes = this.assembly.CustomAttributes.Where(x => x.AttributeType == typeof(XmlnsPrefixAttribute));
            foreach (var attribute in attributes)
            {
                Assert.AreEqual(Uri, attribute.ConstructorArguments[0].Value);
            }
        }
    }
}

namespace Gu.Wpf.Geometry.Tests
{
    using System;
    using System.Linq;
    using System.Reflection;
    using System.Windows.Markup;

    using NUnit.Framework;

    public class NamespacesTests
    {
        private const string Uri = "http://gu.se/Geometry";

        private readonly Assembly assembly;

        public NamespacesTests()
        {
            this.assembly = typeof(GradientPath).Assembly;
        }

        [Test]
        public void XmlnsPrefix()
        {
            var attributes = this.assembly.CustomAttributes.Where(x => x.AttributeType == typeof(XmlnsPrefixAttribute));
            foreach (var attribute in attributes)
            {
                Assert.AreEqual(Uri, attribute.ConstructorArguments[0].Value);
            }
        }
    }
}

Remove test that is checked by analyzer.
Remove test that is checked by analyzer.
