public void ReferenceMatchesDefinition_False_PublicKeyDiffers()
        {
            var referenceWithPublicKey = AssemblyNameReferenceObjectMother.CreateAssemblyNameReferenceWithPublicKey(
                "NameOnly", AssemblyNameReferenceObjectMother.PublicKey1);
            var definitionWithPublicKey = AssemblyNameReferenceObjectMother.CreateAssemblyNameReferenceWithPublicKey(
                "NameOnly", AssemblyNameReferenceObjectMother.PublicKey2);
            var definitionWithoutPublicKey = AssemblyNameReferenceObjectMother.CreateAssemblyNameReference("NameOnly");

            Assert.That(referenceWithPublicKey.MatchesDefinition(definitionWithPublicKey), Is.False);
            Assert.That(referenceWithPublicKey.MatchesDefinition(definitionWithoutPublicKey), Is.False);
        }
        public void ReferenceMatchesDefinition_True_ShortNameOnly()
        {
            var reference = AssemblyNameReferenceObjectMother.CreateAssemblyNameReference("NameOnly");
            var definitionWithShortNameOnly  = AssemblyNameReferenceObjectMother.CreateAssemblyNameReference("NameOnly");
            var definitionWithCulture        = AssemblyNameReferenceObjectMother.CreateAssemblyNameReferenceWithCulture("NameOnly", "de");
            var definitionWithVersion        = AssemblyNameReferenceObjectMother.CreateAssemblyNameReferenceWithVersion("NameOnly", "2.0");
            var definitionWithPublicKeyToken = AssemblyNameReferenceObjectMother.CreateAssemblyNameReferenceWithPublicKeyToken(
                "NameOnly", AssemblyNameReferenceObjectMother.PublicKeyToken1);
            var definitionWithPublicKey = AssemblyNameReferenceObjectMother.CreateAssemblyNameReferenceWithPublicKey(
                "NameOnly", AssemblyNameReferenceObjectMother.PublicKey1);

            Assert.That(reference.MatchesDefinition(definitionWithShortNameOnly), Is.True);
            Assert.That(reference.MatchesDefinition(definitionWithCulture), Is.True);
            Assert.That(reference.MatchesDefinition(definitionWithVersion), Is.True);
            Assert.That(reference.MatchesDefinition(definitionWithPublicKeyToken), Is.True);
            Assert.That(reference.MatchesDefinition(definitionWithPublicKey), Is.True);
        }