public void Equals_Given_SameWebGetRequestTool_IsEqual() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var webGetRequestActivity = new DsfWebGetRequestActivity(); var webGetRequestActivity1 = webGetRequestActivity; //---------------Assert Precondition---------------- Assert.IsNotNull(webGetRequestActivity); //---------------Execute Test ---------------------- var @equals = webGetRequestActivity.Equals(webGetRequestActivity1); //---------------Test Result ----------------------- Assert.IsTrue(@equals); }
public void Equals_Given_Same_DisplayName_Value_IsEqual() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var webGet = new DsfWebGetRequestActivity() { UniqueID = uniqueId, DisplayName = "" }; var webGet1 = new DsfWebGetRequestActivity() { UniqueID = uniqueId, DisplayName = "" }; //---------------Assert Precondition---------------- Assert.IsNotNull(webGet); //---------------Execute Test ---------------------- var @equals = webGet.Equals(webGet1); //---------------Test Result ----------------------- Assert.IsTrue(@equals); }
public void Equals_Given_Same_Method_Different_Casing_IsNotEqual() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var webGet = new DsfWebGetRequestActivity() { UniqueID = uniqueId, Method = "A" }; var webGet1 = new DsfWebGetRequestActivity() { UniqueID = uniqueId, Method = "a" }; //---------------Assert Precondition---------------- Assert.IsNotNull(webGet); //---------------Execute Test ---------------------- var @equals = webGet.Equals(webGet1); //---------------Test Result ----------------------- Assert.IsFalse(@equals); }
public void Equals_Given_DifferentWebGetRequestToolIds_AreNotEqual() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var uniqueId2 = Guid.NewGuid().ToString(); var webGetRequestActivity = new DsfWebGetRequestActivity() { UniqueID = uniqueId }; var webGetRequestActivity1 = new DsfWebGetRequestActivity() { UniqueID = uniqueId2 }; //---------------Assert Precondition---------------- Assert.IsNotNull(webGetRequestActivity); //---------------Execute Test ---------------------- var @equals = webGetRequestActivity.Equals(webGetRequestActivity1); //---------------Test Result ----------------------- Assert.IsFalse(@equals); }