コード例 #1
0
        public void ValidateGuidFormat2()
        {
            AzureServicePrincipal sp = new AzureServicePrincipal();

            //Assert will be handled by the exception
            sp.subscriptionID = sp.ValidateGuidFormat("b44fdde2-1234-1234-a75b-1234");
        }
コード例 #2
0
        public void ValidateGuidFormat4()
        {
            AzureServicePrincipal sp = new AzureServicePrincipal();

            //Assert will be handled by the exception
            sp.subscriptionID = sp.ValidateGuidFormat("1234567-1234-1234-a75b-24429617b2d9");
        }
コード例 #3
0
        public void ValidateGuidFormat()
        {
            AzureServicePrincipal sp      = new AzureServicePrincipal();
            string expectedSubscriptionID = "b44fdde2-1234-1234-a75b-24429617b2d9";

            sp.subscriptionID = sp.ValidateGuidFormat("b44fdde2-1234-1234-a75b-24429617b2d9");
            //The expected value should match with curly braces
            Assert.AreEqual(expectedSubscriptionID, sp.subscriptionID, true);
        }