public void Test_Default_Construct_WithValue_ShouldSetValue()
 {
     //---------------Set up test pack-------------------
     string defaultValue = RandomValueGenerator.GetRandomString();            
     //---------------Assert Precondition----------------
     //---------------Execute Test ----------------------
     var attribute = new AutoMapDefaultAttribute(defaultValue);
     //---------------Test Result -----------------------
     Assert.AreSame(defaultValue, attribute.DefaultValue);
 }
Ejemplo n.º 2
0
        public void Test_Default_Construct_WithValue_ShouldSetValue()
        {
            //---------------Set up test pack-------------------
            string defaultValue = RandomValueGenerator.GetRandomString();
            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
            var attribute = new AutoMapDefaultAttribute(defaultValue);

            //---------------Test Result -----------------------
            Assert.AreSame(defaultValue, attribute.DefaultValue);
        }