Exemplo n.º 1
0
        public void TestDescription(string name, string profileType, string month, string year)
        {
            string expected = Resources.ProdProfileDescription;;

            switch (profileType)
            {
            case "Hybrid":
                expected = Resources.HybridProfileDescription;
                break;

            case "Sovereign":
                expected = Resources.SovereignProfileDescription;
                break;
            }

            var expectedReturnValue = $"{expected} This profile was defined in {month} {year}.";

            Assert.Equal(expectedReturnValue, PSAzureServiceProfile.GetProfileDescription(name));
        }
Exemplo n.º 2
0
 public void TestDescriptionNegative(string name)
 {
     Assert.Equal(Resources.ProdProfileDescription, PSAzureServiceProfile.GetProfileDescription(name));
 }