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); }
public void Parse_WithProperty() { Assert.Equal("test", ProfileServer.ParseSecretName("test[property]").Name); Assert.Equal("property", ProfileServer.ParseSecretName("test[property]").Property); }
public void Parse_Empty() { Assert.Equal(string.Empty, ProfileServer.ParseSecretName(string.Empty).Name); Assert.Null(ProfileServer.ParseSecretName(string.Empty).Property); }
public void Parse_NoProperty() { Assert.Equal("test", ProfileServer.ParseSecretName("test").Name); Assert.Null(ProfileServer.ParseSecretName("test").Property); }
public void Parse_Null() { Assert.Throws <ArgumentNullException>(() => ProfileServer.ParseSecretName(null)); }