38 references to XmlAssert
Microsoft.AspNetCore.DataProtection.Tests (38)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (2)
162XmlAssert.Equal(expectedXml, retVal.SerializedDescriptorElement); 185XmlAssert.Equal(expectedXml, retVal.SerializedDescriptorElement);
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorTests.cs (2)
37XmlAssert.Equal(expectedXml, retVal.SerializedDescriptorElement); 65XmlAssert.Equal(expectedXml, retVal.SerializedDescriptorElement);
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorTests.cs (2)
34XmlAssert.Equal(expectedXml, retVal.SerializedDescriptorElement); 60XmlAssert.Equal(expectedXml, retVal.SerializedDescriptorElement);
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorTests.cs (2)
36XmlAssert.Equal(expectedXml, retVal.SerializedDescriptorElement); 68XmlAssert.Equal(expectedXml, retVal.SerializedDescriptorElement);
KeyManagement\DeferredKeyTests.cs (1)
28XmlAssert.Equal(@"<node />", element);
KeyManagement\XmlKeyManagerTests.cs (5)
157XmlAssert.Equal(expectedXml, elementStoredInRepository); 256XmlAssert.Equal(expectedEscrowXml, elementStoredInEscrow); 285XmlAssert.Equal(expectedRepositoryXml, elementStoredInRepository); 658XmlAssert.Equal(expectedRepositoryXml, elementStoredInRepository); 713XmlAssert.Equal(expectedRepositoryXml, elementStoredInRepository);
MockExtensions.cs (2)
30XmlAssert.Equal(xml, el); 53XmlAssert.Equal(expectedInputXml, el);
Repositories\EphemeralXmlRepositoryTests.cs (2)
33Assert.Equal(new[] { element1, element2 }, repository.GetAllElements(), XmlAssert.EqualityComparer); 35Assert.Equal(new[] { element1, element2, element3 }, repository.GetAllElements(), XmlAssert.EqualityComparer);
Repositories\FileSystemXmlRepositoryTests.cs (2)
83XmlAssert.Equal("<element1 />", parsedElement); 117XmlAssert.Equal("<element1 />", parsedElement);
Repositories\RegistryXmlRepositoryTests.cs (2)
71XmlAssert.Equal("<element1 />", parsedElement); 103XmlAssert.Equal("<element1 />", parsedElement);
XmlEncryption\CertificateXmlEncryptionTests.cs (1)
56XmlAssert.Equal(originalXml, roundTrippedElement);
XmlEncryption\DpapiNGXmlEncryptionTests.cs (1)
29XmlAssert.Equal(originalXml, roundTrippedElement);
XmlEncryption\DpapiXmlEncryptionTests.cs (1)
31XmlAssert.Equal(originalXml, roundTrippedElement);
XmlEncryption\NullXmlEncryptionTests.cs (2)
20XmlAssert.Equal("<theElement />", retVal); 34XmlAssert.Equal("<unencryptedKey><theElement /></unencryptedKey>", retVal.EncryptedElement);
XmlEncryption\XmlEncryptionExtensionsTests.cs (11)
25XmlAssert.Equal("<element />", original); // unmutated 49XmlAssert.Equal("<newNode />", retVal); 76XmlAssert.Equal("<newNode />", retVal); 110XmlAssert.Equal("<value />", retVal); 142XmlAssert.Equal("<value />", retVal); 193XmlAssert.Equal(expected, retVal); 208XmlAssert.Equal("<element />", original); // unmutated 223XmlAssert.Equal(@"<rootNode x:requiresEncryption='true' xmlns:x='http://schemas.asp.net/2015/03/dataProtection' />", original); // unmutated 226XmlAssert.Equal("<theElement />", retVal.Descendants().Single()); 271XmlAssert.Equal(expected, retVal); 320XmlAssert.Equal(expected, retVal);