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

CultureName_Set_Invalid_ThrowsCultureNotFoundException() private method

        public void CultureName_Set_Invalid_ThrowsCultureNotFoundException()
        {
            var assemblyName = new AssemblyName("Test");
            Assert.Throws<CultureNotFoundException>(() => new AssemblyName("Test, Culture=NotAValidCulture"));
            Assert.Throws<CultureNotFoundException>(() => assemblyName.CultureName = "NotAValidCulture");
        }