コード例 #1
0
        public void Equals_ShouldReturnFalse_WhenItIsComparedWithNullValue()
        {
            // Given
            var underTest = new CommandCallDescriptor("test-call", Enumerable.Empty <ICommandCallActualArgument>());

            // When
            var result = underTest.Equals(null);

            // Then
            Assert.That(result, Is.False);
        }
コード例 #2
0
        public void Equals_ShouldReturnFalse_WhenItIsComparedWithNullValue()
        {
            // Given
            var underTest = new CommandCallDescriptor("test-call", Enumerable.Empty<ICommandCallActualArgument>());

            // When
            var result = underTest.Equals(null);

            // Then
            Assert.That(result, Is.False);
        }
コード例 #3
0
        public void Equals_ShouldReturnTrue_WhenSameReferencesAreCompared()
        {
            // Given
            var underTest = new CommandCallDescriptor("test-call", Enumerable.Empty <ICommandCallActualArgument>());

            // When
            var result = underTest.Equals(underTest);

            // Then
            Assert.That(result, Is.True);
        }
コード例 #4
0
        public void Equals_ShouldReturnTrue_WhenSameReferencesAreCompared()
        {
            // Given
            var underTest = new CommandCallDescriptor("test-call", Enumerable.Empty<ICommandCallActualArgument>());

            // When
            var result = underTest.Equals(underTest);

            // Then
            Assert.That(result, Is.True);
        }