Esempio n. 1
0
        public void GetTypeName_WithVersionAndKeyToken()
        {
            const string typeName = "Name, Version = <version>, PublicKeyToken = <publicKeyToken>";
            var          result   = TypeNameTemplateResolver.ResolveToTypeName(typeName, _referenceAssembly);

            Assert.That(result, Is.EqualTo("Name, Version = 2.4.6.8, PublicKeyToken = c5c11252695089f8"));
        }
Esempio n. 2
0
        public void GetTypeName_WithUnsignedAssembly()
        {
            var referenceAssembly = CreateReferenceAssembly(new Version(), null);

            const string typeName = "Name, Version = <version>, PublicKeyToken = <publicKeyToken>";
            var          result   = TypeNameTemplateResolver.ResolveToTypeName(typeName, referenceAssembly);

            Assert.That(result, Is.EqualTo("Name, Version = 0.0.0.0, PublicKeyToken = null"));
        }
Esempio n. 3
0
        public void GetTypeName_WithVersion()
        {
            var result = TypeNameTemplateResolver.ResolveToTypeName("Name, Version = <version>", _referenceAssembly);

            Assert.That(result, Is.EqualTo("Name, Version = 2.4.6.8"));
        }