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); }
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); }