System.Resources.Tests.ResourceManagerTests.GetString_FromResourceType C# (CSharp) Méthode

GetString_FromResourceType() private méthode

private GetString_FromResourceType ( string key, string expectedValue ) : void
key string
expectedValue string
Résultat void
        public static void GetString_FromResourceType(string key, string expectedValue)
        {
            Type resourceType = typeof(Resources.TestResx);
            ResourceManager resourceManager = new ResourceManager(resourceType);
            string actual = resourceManager.GetString(key);
            Assert.Equal(expectedValue, actual);
        }
    }