Ejemplo n.º 1
0
        public void Equals_IsSymmetric(JSendError first, JSendError second)
        {
            // Exercise system
            var firstEqualsSecond = first.Equals(second);
            var secondEqualsFirst = second.Equals(first);

            // Verify outcome
            firstEqualsSecond.Should().Be(secondEqualsFirst);
        }
Ejemplo n.º 2
0
 public void ErrorIsNotEqualToInstanceOfAnotherType(JSendError error, string other)
 {
     // Exercise system and verify outcome
     error.Equals(other).Should().BeFalse();
 }
Ejemplo n.º 3
0
 public void Equals_IsReflexive(JSendError error)
 {
     // Exercise system and verify outcome
     error.Equals(error).Should().BeTrue();
 }
Ejemplo n.º 4
0
 public void TwoErrors_AreNotEqual_WhenTheirFieldsDoNotMatch(JSendError first, JSendError second)
 {
     // Exercise system and verify outcome
     first.Equals(second).Should().BeFalse();
 }
Ejemplo n.º 5
0
 public void ErrorIsNotEqualToNull(JSendError error)
 {
     // Exercise system and verify outcome
     error.Equals(null).Should().BeFalse();
 }
Ejemplo n.º 6
0
 public void Equals_IsSymmetric(JSendError first, JSendError second)
 {
     // Exercise system
     var firstEqualsSecond = first.Equals(second);
     var secondEqualsFirst = second.Equals(first);
     // Verify outcome
     firstEqualsSecond.Should().Be(secondEqualsFirst);
 }
Ejemplo n.º 7
0
 public void Equals_IsReflexive(JSendError error)
 {
     // Exercise system and verify outcome
     error.Equals(error).Should().BeTrue();
 }
Ejemplo n.º 8
0
 public void ErrorIsNotEqualToInstanceOfAnotherType(JSendError error, string other)
 {
     // Exercise system and verify outcome
     error.Equals(other).Should().BeFalse();
 }
Ejemplo n.º 9
0
 public void ErrorIsNotEqualToNull(JSendError error)
 {
     // Exercise system and verify outcome
     error.Equals(null).Should().BeFalse();
 }
Ejemplo n.º 10
0
 public void TwoErrors_AreNotEqual_WhenTheirFieldsDoNotMatch(JSendError first, JSendError second)
 {
     // Exercise system and verify outcome
     first.Equals(second).Should().BeFalse();
 }