예제 #1
0
        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());
        }
예제 #2
0
 public override string ToString()
 {
     return(_tag.ToString());
 }