Пример #1
0
        public void TestToStringNull()
        {
            var objectUnderTest = new EditableModel <object>(null);

            string resultString = objectUnderTest.ToString();

            Assert.AreEqual("", resultString);
        }
Пример #2
0
        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);
        }