public void PopulateDictionaryFilledCorrectly()
 {
     provider = new DebugInformationProvider();
     provider.PopulateDictionary(dictionary);
     Assert.IsTrue(dictionary.Count > 0, "Dictionary contains no items");
     AssertUtilities.AssertStringDoesNotContain(dictionary[Resources.DebugInfo_StackTrace] as string, String.Format(Resources.ExtendedPropertyError, ""), "Stack trace");
 }
 public void PopulateDictionaryFilledCorrectly()
 {
     provider = new UnmanagedSecurityContextInformationProvider();
     provider.PopulateDictionary(dictionary);
     Assert.AreEqual(2, dictionary.Count);
     AssertUtilities.AssertStringDoesNotContain(dictionary[Resources.UnmanagedSecurity_CurrentUser] as string, string.Format(Resources.ExtendedPropertyError, ""), "CurrentUser");
     AssertUtilities.AssertStringDoesNotContain(dictionary[Resources.UnmanagedSecurity_ProcessAccountName] as string, string.Format(Resources.ExtendedPropertyError, ""), "ProcessAccountName");
 }
Ejemplo n.º 3
0
 public void PopulateDictionaryFilledCorrectly()
 {
     provider = new ManagedSecurityContextInformationProvider();
     provider.PopulateDictionary(dictionary);
     Assert.IsTrue(dictionary.Count > 0, "Dictionary contains no items");
     AssertUtilities.AssertStringDoesNotContain(dictionary[Resources.ManagedSecurity_AuthenticationType] as string, string.Format(Resources.ExtendedPropertyError, ""), "Authentication Type");
     AssertUtilities.AssertStringDoesNotContain(dictionary[Resources.ManagedSecurity_IdentityName] as string, string.Format(Resources.ExtendedPropertyError, ""), "Identity Name");
     AssertUtilities.AssertStringDoesNotContain(dictionary[Resources.ManagedSecurity_IsAuthenticated] as string, string.Format(Resources.ExtendedPropertyError, ""), "Is Authenticated");
 }