public void Get_description()
        {
            var target   = new PrototypeTarget("Jeremy");
            var instance = new PrototypeInstance(target);

            TestUtility.AssertDescriptionIs(instance, "Prototype of " + target);
        }
Esempio n. 2
0
        public void GetDescription()
        {
            string theReferenceKey = "theReferenceKey";
            var    instance        = new ReferencedInstance(theReferenceKey);

            TestUtility.AssertDescriptionIs(instance, "\"theReferenceKey\"");
        }
Esempio n. 3
0
        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");
 }