public void DefaultValues()
        {
            var sut = new EventReference();

            Assert.AreEqual(new VariableReference(), sut.Reference);
            Assert.AreEqual(Names.UnknownEvent, sut.EventName);
            Assert.AreNotEqual(0, sut.GetHashCode());
            Assert.AreNotEqual(1, sut.GetHashCode());
        }
        public void Equality_Default()
        {
            var a = new EventReference();
            var b = new EventReference();

            Assert.AreEqual(a, b);
            Assert.AreEqual(a.GetHashCode(), b.GetHashCode());
        }
        public void Equality_DifferentReference()
        {
            var a = new EventReference {
                Reference = SomeRef
            };
            var b = new EventReference();

            Assert.AreNotEqual(a, b);
            Assert.AreNotEqual(a.GetHashCode(), b.GetHashCode());
        }
        public void Equality_ReallyTheSame()
        {
            var a = new EventReference
            {
                Reference = SomeRef,
                EventName = SomeEvent
            };
            var b = new EventReference
            {
                Reference = SomeRef,
                EventName = SomeEvent
            };

            Assert.AreEqual(a, b);
            Assert.AreEqual(a.GetHashCode(), b.GetHashCode());
        }