public void GetAuthenticationDataTest() { AuthenticationProviderCollectionNode node = new AuthenticationProviderCollectionNode(); CreateHierarchyAndAddToHierarchyService(node, CreateDefaultConfiguration()); CustomAuthenticationProviderNode providerNode = new CustomAuthenticationProviderNode(); node.Nodes.Add(providerNode); providerNode.Name = "provider1"; providerNode.TypeName = typeof(MockAuthenticationProvider).AssemblyQualifiedName; AuthenticationProviderDataCollection providers = node.AuthenticationProviderDataCollection; Assert.IsNotNull(providers); Assert.AreEqual(1, providers.Count); AuthenticationProviderData data = providers["provider1"]; Assert.IsNotNull(data); CustomAuthenticationProviderData customData = data as CustomAuthenticationProviderData; Assert.IsNotNull(customData); Assert.AreEqual(typeof(MockAuthenticationProvider).AssemblyQualifiedName, customData.TypeName); }