Exemplo n.º 1
0
        public void ToString_ReturnStringRepresentation()
        {
            var    diffAttr = new DiffAttribute(DiffAction.Removed, Raw);
            string result   = diffAttr.ToString();
            string expected = "- Attribute: \"name\" with value: \"val\"\r\n";

            Assert.AreEqual(expected, result);
        }
Exemplo n.º 2
0
 public void Visit(DiffAttribute attr, XdtContext param)
 {
     param.HandleAttr(attr.Raw.Name, attr.Action);
 }
Exemplo n.º 3
0
 public void Visit(DiffAttribute attr, int level)
 {
     _sb.AppendFormat("{0}{1} Attribute: \"{2}\" with value: \"{3}\"\r\n",
                      BuildIndent(level), ActionToString(attr.Action), attr.Raw.Name, attr.Raw.Value);
 }
Exemplo n.º 4
0
 public void Visit(DiffAttribute attr, int param)
 {
     _sb.AppendFormat("<span{0}>\"{1}\"=\"{2}\"</span>",
                      ActionToString(attr.Action), attr.Raw.Name, System.Security.SecurityElement.Escape(attr.Raw.Value));
 }
Exemplo n.º 5
0
        public void IsChangedProperty_ShouldAlwaysBeTrue(DiffAction action)
        {
            var diffAttr = new DiffAttribute(action, Raw);

            Assert.IsTrue(diffAttr.IsChanged);
        }