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

GetAssemblyName() private method

private GetAssemblyName ( ) : void
return void
        public static void GetAssemblyName()
        {
            Assert.Throws<ArgumentNullException>("assemblyFile", () => AssemblyName.GetAssemblyName(null));
            Assert.Throws<ArgumentException>(() => AssemblyName.GetAssemblyName(string.Empty));
            Assert.Throws<System.IO.FileNotFoundException>(() => AssemblyName.GetAssemblyName("IDontExist"));

            Assembly a = typeof(AssemblyNameTests).Assembly;
            Assert.Equal(new AssemblyName(a.FullName).ToString(), AssemblyName.GetAssemblyName(a.Location).ToString());
        }