System.Reflection.Tests.AssemblyNameTests.GetFullNameAndToString_AreEquivalentAndDoNotPreserveArchitecture C# (CSharp) Method

GetFullNameAndToString_AreEquivalentAndDoNotPreserveArchitecture() private method

private GetFullNameAndToString_AreEquivalentAndDoNotPreserveArchitecture ( string name, ProcessorArchitecture expected ) : void
name string
expected ProcessorArchitecture
return void
        public void GetFullNameAndToString_AreEquivalentAndDoNotPreserveArchitecture(string name, ProcessorArchitecture expected)
        {
            string originalFullName = "Test, Culture=en-US, PublicKeyToken=b77a5c561934e089, ProcessorArchitecture=" + name;
            string expectedSerializedFullName = "Test, Culture=en-US, PublicKeyToken=b77a5c561934e089";

            var assemblyName = new AssemblyName(originalFullName);

            Assert.Equal(expectedSerializedFullName, assemblyName.FullName);
            Assert.Equal(expectedSerializedFullName, assemblyName.ToString());
        }