Beispiel #1
0
 public void TestDateNegative()
 {
     Assert.Equal(string.Empty, PSAzureServiceProfile.GetDateString("profile-foo"));
     Assert.Equal(string.Empty, PSAzureServiceProfile.GetDateString("profile2019-20"));
     Assert.Equal(string.Empty, PSAzureServiceProfile.GetDateString("profile-2019-20"));
     Assert.Equal(string.Empty, PSAzureServiceProfile.GetDateString("profile-20-30-40"));
     Assert.Equal(string.Empty, PSAzureServiceProfile.GetDateString("profile-20195-30-40"));
 }
Beispiel #2
0
        public void TestDate(string profile, string month, string year)
        {
            var expectedDateString = $" This profile was defined in {month} {year}.";

            Assert.Equal(expectedDateString, PSAzureServiceProfile.GetDateString(profile));
        }