Exemplo n.º 1
0
        public void GetHashCode_WithDifferenceValue_ShouldGetDifferenceResult()
        {
            CallbackResult other;

            other = new CallbackResult(CallbackResult.StatusError, this.subject.Data);

            Assert.NotEqual(this.subject.GetHashCode(), other.GetHashCode());

            other = new CallbackResult(this.subject.Status, "Difference data");

            Assert.NotEqual(this.subject.GetHashCode(), other.GetHashCode());
        }
Exemplo n.º 2
0
        public void GetHashCode_WithSameValue_ShouldGetSameResult()
        {
            var other = new CallbackResult(this.subject.Status, this.subject.Data);

            Assert.Equal(this.subject.GetHashCode(), other.GetHashCode());
        }
Exemplo n.º 3
0
        public void GetHashCode_WithNullData_ShouldSuccess()
        {
            var other = new CallbackResult(CallbackResult.StatusSuccess, null);

            other.GetHashCode();
        }