public void Test_TableNameAttribute_ConstructWithValue_ShouldSetValue() { //---------------Set up test pack------------------- string tableName; //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var attribute = new AutoMapTableNameAttribute(tableName = "myTable"); //---------------Test Result ----------------------- Assert.IsInstanceOf <Attribute>(attribute); Assert.AreEqual(tableName, attribute.TableName); }
public void Test_TableNameAttribute_ConstructWithValue_ShouldSetValue() { //---------------Set up test pack------------------- string tableName; //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var attribute = new AutoMapTableNameAttribute(tableName = "myTable"); //---------------Test Result ----------------------- Assert.IsInstanceOf<Attribute>(attribute); Assert.AreEqual(tableName, attribute.TableName); }