public void Equals_Given_Same_RandomType_IsEqual() { //---------------Set up test pack------------------- var uniqueId = Guid.NewGuid().ToString(); var activity1 = new DsfRandomActivity() { UniqueID = uniqueId, RandomType = enRandomType.Numbers }; var activity = new DsfRandomActivity() { UniqueID = uniqueId, RandomType = enRandomType.Numbers }; //---------------Assert Precondition---------------- Assert.IsNotNull(activity1); //---------------Execute Test ---------------------- var @equals = activity1.Equals(activity); //---------------Test Result ----------------------- Assert.IsTrue(@equals); }