Exemple #1
0
        public void Equals_ParameterIsSameObject_ReturnsTrue()
        {
            var parameter1 = new LargestArmyChangedEvent(Guid.NewGuid(), Guid.NewGuid());
            var parameter2 = parameter1;

            parameter1.Equals(parameter2).ShouldBeTrue();
        }
Exemple #2
0
        public void Equals_ParameterIsDifferentObjectWithDifferentNewPlayerId_ReturnsFalse()
        {
            var previousPlayerId = Guid.NewGuid();
            var parameter1       = new LargestArmyChangedEvent(previousPlayerId, Guid.NewGuid());
            var parameter2       = new LargestArmyChangedEvent(previousPlayerId, Guid.NewGuid());

            parameter1.Equals(parameter2).ShouldBeFalse();
        }
Exemple #3
0
        public void Equals_ParameterIsDifferentObjectWithSamePlayerIds_ReturnsTrue()
        {
            var previousPlayerId = Guid.NewGuid();
            var newPlayerId      = Guid.NewGuid();
            var parameter1       = new LargestArmyChangedEvent(previousPlayerId, newPlayerId);
            var parameter2       = new LargestArmyChangedEvent(previousPlayerId, newPlayerId);

            parameter1.Equals(parameter2).ShouldBeTrue();
        }
Exemple #4
0
        public void Equals_ParameterIsNull_ReturnsFalse()
        {
            var parameter = new LargestArmyChangedEvent(Guid.NewGuid(), Guid.NewGuid());

            parameter.Equals(null).ShouldBeFalse();
        }