public void XmlAttributeKeyValueDataHandler_GetSecuredData_EmptySecuredProps_NonChangedResult() { //ARRANGE AbstractKeyValueDataHandler handler = new XmlAttributeKeyValueDataHandler(); handler.Properties = new Dictionary <string, string>(); //ACT var result = handler.GetSecuredData("<auth user=\"max\" pass=\"123456\">"); //ASSERT Assert.AreEqual("<auth user=\"max\" pass=\"123456\">", result); }
public void XmlAttributeKeyValueDataHandler_GetSecuredData_SomePropsNotInRequest_ListedParametresSecured() { //ARRANGE AbstractKeyValueDataHandler handler = new XmlAttributeKeyValueDataHandler(); handler.Properties = new Dictionary <string, string> { { "user", "max" }, { "password", "123456" } }; //ACT var result = handler.GetSecuredData("<auth user=\"max\" pass=\"123456\">"); //ASSERT Assert.AreEqual("<auth user=\"XXX\" pass=\"123456\">", result); }