Try using Assert.AreEqual
:
Assert.AreEqual("Vendor2", logo.GetModifiedBy());
The exception message generated will indicate both the expected and actual value.
Of course, you could also just provide a custom message using this overload of IsTrue
:
var modifiedBy = logo.GetModifiedBy();
Assert.IsTrue(
String.Equals(modifiedBy, "Vendor2"),
"Incorrect ModifiedBy value: '{0}'",
modifiedBy);