public void DefaultValues()
 {
     var sut = new EventSubscriptionStatement();
     Assert.AreEqual(new UnknownReference(), sut.Reference);
     Assert.AreEqual(EventSubscriptionOperation.Add, sut.Operation);
     Assert.AreEqual(new UnknownExpression(), sut.Expression);
     Assert.AreNotEqual(0, sut.GetHashCode());
     Assert.AreNotEqual(1, sut.GetHashCode());
 }
 public void Equality_Default()
 {
     var a = new EventSubscriptionStatement();
     var b = new EventSubscriptionStatement();
     Assert.AreEqual(a, b);
     Assert.AreEqual(a.GetHashCode(), b.GetHashCode());
 }
 public void Equality_DifferentOperation()
 {
     var a = new EventSubscriptionStatement
     {
         Operation = EventSubscriptionOperation.Remove
     };
     var b = new EventSubscriptionStatement();
     Assert.AreNotEqual(a, b);
     Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode());
 }
 public void Equality_DifferentReference()
 {
     var a = new EventSubscriptionStatement
     {
         Reference = new VariableReference {Identifier = "x"}
     };
     var b = new EventSubscriptionStatement();
     Assert.AreNotEqual(a, b);
     Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode());
 }
 public void Equality_DifferentExpression()
 {
     var a = new EventSubscriptionStatement
     {
         Expression = new ConstantValueExpression()
     };
     var b = new EventSubscriptionStatement();
     Assert.AreNotEqual(a, b);
     Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode());
 }
 public void Equality_ReallyTheSame()
 {
     var a = new EventSubscriptionStatement
     {
         Reference = new VariableReference {Identifier = "x"},
         Operation = EventSubscriptionOperation.Remove,
         Expression = new ConstantValueExpression()
     };
     var b = new EventSubscriptionStatement
     {
         Reference = new VariableReference {Identifier = "x"},
         Operation = EventSubscriptionOperation.Remove,
         Expression = new ConstantValueExpression()
     };
     Assert.AreEqual(a, b);
     Assert.AreEqual(a.GetHashCode(), b.GetHashCode());
 }