コード例 #1
0
        public void Parse_BadProperty()
        {
            Assert.Equal("test[property", ProfileServer.ParseSecretName("test[property").Name);
            Assert.Null(ProfileServer.ParseSecretName("test[property").Property);

            Assert.Equal("testproperty]", ProfileServer.ParseSecretName("testproperty]").Name);
            Assert.Null(ProfileServer.ParseSecretName("testproperty]").Property);

            Assert.Equal("test", ProfileServer.ParseSecretName("test[]").Name);
            Assert.Null(ProfileServer.ParseSecretName("test[]").Property);
        }
コード例 #2
0
 public void Parse_WithProperty()
 {
     Assert.Equal("test", ProfileServer.ParseSecretName("test[property]").Name);
     Assert.Equal("property", ProfileServer.ParseSecretName("test[property]").Property);
 }
コード例 #3
0
 public void Parse_Empty()
 {
     Assert.Equal(string.Empty, ProfileServer.ParseSecretName(string.Empty).Name);
     Assert.Null(ProfileServer.ParseSecretName(string.Empty).Property);
 }
コード例 #4
0
 public void Parse_NoProperty()
 {
     Assert.Equal("test", ProfileServer.ParseSecretName("test").Name);
     Assert.Null(ProfileServer.ParseSecretName("test").Property);
 }
コード例 #5
0
 public void Parse_Null()
 {
     Assert.Throws <ArgumentNullException>(() => ProfileServer.ParseSecretName(null));
 }