public void DsfWebGetRequestWithTimeoutActivity_Equals_dsfWebGetActivity_Null_IsFalse() { //------------Setup for test-------------------------- var dsfWebGetActivity = new DsfWebGetRequestWithTimeoutActivity(); //------------Execute Test--------------------------- var actual = dsfWebGetActivity.Equals(null); //------------Assert Results------------------------- Assert.IsFalse(actual); }
public void Equals_Given_SameWebGetRequestTool_IsEqual() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var webGetRequestActivity = new DsfWebGetRequestWithTimeoutActivity(); var webGetRequestActivity1 = webGetRequestActivity; //---------------Assert Precondition---------------- Assert.IsNotNull(webGetRequestActivity); //---------------Execute Test ---------------------- var @equals = webGetRequestActivity.Equals(webGetRequestActivity1); //---------------Test Result ----------------------- Assert.IsTrue(@equals); }
public void DsfWebGetRequestWithTimeoutActivity_Equals_ObjectType_NotEqualToThis_IsFalse() { //------------Setup for test-------------------------- var dsfWebGetActivity = new DsfWebGetRequestWithTimeoutActivity { Method = "GET", Headers = string.Empty, TimeoutSeconds = 100, // default of 100 seconds TimeOutText = "100", }; //------------Execute Test--------------------------- var actual = dsfWebGetActivity.Equals(new object()); //------------Assert Results------------------------- Assert.IsFalse(actual); }
public void DsfWebGetRequestWithTimeoutActivity_Equals_dsfWebGetActivity_NotNull_IsTrue() { //------------Setup for test-------------------------- var dsfWebGetActivity = new DsfWebGetRequestWithTimeoutActivity { Method = "GET", Headers = string.Empty, TimeoutSeconds = 100, // default of 100 seconds TimeOutText = "100", }; //------------Execute Test--------------------------- var actual = dsfWebGetActivity.Equals(dsfWebGetActivity); //------------Assert Results------------------------- Assert.IsTrue(actual); }
public void Equals_Given_Same_DisplayName_Value_IsEqual() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var webGet = new DsfWebGetRequestWithTimeoutActivity() { UniqueID = uniqueId, DisplayName = "" }; var webGet1 = new DsfWebGetRequestWithTimeoutActivity() { UniqueID = uniqueId, DisplayName = "" }; //---------------Assert Precondition---------------- Assert.IsNotNull(webGet); //---------------Execute Test ---------------------- var @equals = webGet.Equals(webGet1); //---------------Test Result ----------------------- Assert.IsTrue(@equals); }
public void Equals_Given_Different_TimeoutSeconds_IsNotEqual() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var webGet = new DsfWebGetRequestWithTimeoutActivity() { UniqueID = uniqueId, TimeoutSeconds = 1 }; var webGet1 = new DsfWebGetRequestWithTimeoutActivity() { UniqueID = uniqueId, TimeoutSeconds = 2 }; //---------------Assert Precondition---------------- Assert.IsNotNull(webGet); //---------------Execute Test ---------------------- var @equals = webGet.Equals(webGet1); //---------------Test Result ----------------------- Assert.IsFalse(@equals); }
public void DsfWebGetRequestWithTimeoutActivity_Equals_Given_Same_Headers_Different_Casing_IsNotEqual() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var webGet = new DsfWebGetRequestWithTimeoutActivity() { UniqueID = uniqueId, Headers = "A" }; var webGet1 = new DsfWebGetRequestWithTimeoutActivity() { UniqueID = uniqueId, Headers = "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 DsfWebGetRequestWithTimeoutActivity() { UniqueID = uniqueId }; var webGetRequestActivity1 = new DsfWebGetRequestWithTimeoutActivity() { UniqueID = uniqueId2 }; //---------------Assert Precondition---------------- Assert.IsNotNull(webGetRequestActivity); //---------------Execute Test ---------------------- var @equals = webGetRequestActivity.Equals(webGetRequestActivity1); //---------------Test Result ----------------------- Assert.IsFalse(@equals); }