protected void AssertAttributeAdded(Action <T> actionToTest, string expectedResult) { Tag.Setup(t => t.AddAttribute(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <StringEncoder>())) .Callback((string k, string v, StringEncoder enc) => _testTag.AddAttribute(k, v, enc)).Verifiable(); actionToTest.Invoke(Tag.Object); Assert.AreEqual(expectedResult, _testTag.ToString()); }
public override string ToString() { return(_tag.ToString()); }