public void TestToStringNull() { var objectUnderTest = new EditableModel <object>(null); string resultString = objectUnderTest.ToString(); Assert.AreEqual("", resultString); }
public void TestToString() { const string testString = "test string"; var objectUnderTest = new EditableModel <object>(Mock.Of <object>(o => o.ToString() == testString)); string resultString = objectUnderTest.ToString(); Assert.AreEqual(testString, resultString); }