public void UniqueIDDifferent_EmptySqlDatabase_Object_Is_Not_Equal() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var activity1 = new DsfSqlServerDatabaseActivity(); var sqlDatabase = new DsfSqlServerDatabaseActivity(); //---------------Assert Precondition---------------- Assert.IsNotNull(activity1); //---------------Execute Test ---------------------- var @equals = activity1.Equals(sqlDatabase); //---------------Test Result ----------------------- Assert.IsFalse(@equals); }
public void Equals_Given_Different_DisplayName_Is_Not_Equal() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var activity1 = new DsfSqlServerDatabaseActivity() { UniqueID = uniqueId, DisplayName = "A" }; var sqlDatabase = new DsfSqlServerDatabaseActivity() { UniqueID = uniqueId, DisplayName = "ass" }; //---------------Assert Precondition---------------- Assert.IsNotNull(activity1); //---------------Execute Test ---------------------- var @equals = activity1.Equals(sqlDatabase); //---------------Test Result ----------------------- Assert.IsFalse(@equals); }
public void UniqueIDEquals_EmptySqlDatabase_Object_Is_Equal() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var sqlDatabase = new DsfSqlServerDatabaseActivity() { UniqueID = uniqueId }; var activity = new DsfSqlServerDatabaseActivity() { UniqueID = uniqueId }; //---------------Assert Precondition---------------- Assert.IsNotNull(sqlDatabase); //---------------Execute Test ---------------------- var equals = sqlDatabase.Equals(activity); //---------------Test Result ----------------------- Assert.IsTrue(@equals); }
public void Equals_Given_Same_ProcedureName_IsEqual() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var activity1 = new DsfSqlServerDatabaseActivity() { UniqueID = uniqueId, ProcedureName = "a" }; var sqlDatabase = new DsfSqlServerDatabaseActivity() { UniqueID = uniqueId, ProcedureName = "a" }; //---------------Assert Precondition---------------- Assert.IsNotNull(activity1); //---------------Execute Test ---------------------- var @equals = activity1.Equals(sqlDatabase); //---------------Test Result ----------------------- Assert.IsTrue(@equals); }