public void Get_description() { var target = new PrototypeTarget("Jeremy"); var instance = new PrototypeInstance(target); TestUtility.AssertDescriptionIs(instance, "Prototype of " + target); }
public void GetDescription() { string theReferenceKey = "theReferenceKey"; var instance = new ReferencedInstance(theReferenceKey); TestUtility.AssertDescriptionIs(instance, "\"theReferenceKey\""); }
public void Create_description_should_return_the_ToString_of_the_inner_instance() { var instance = new ObjectInstance(this); TestUtility.AssertDescriptionIs(instance, "Object: " + ToString()); }
public void Get_description() { TestUtility.AssertDescriptionIs(new DefaultInstance(), "Default"); }