Exemplo n.º 1
0
        public void EqualsWithNullReturnsFalse()
        {
            // Arrange
            var keyA = new TestBusKey("testQueue", "testTopic");

            // Act
            bool result = keyA.Equals(null);

            // Assert
            Assert.IsFalse(result);
        }
Exemplo n.º 2
0
        public void TwoKeysWithTheSameValuesAreEqual(string queueA, string topicA, string queueB, string topicB, bool expected)
        {
            // Arrange
            var keyA = new TestBusKey(queueA, topicA);
            var keyB = new TestBusKey(queueB, topicB);

            // Act
            bool result = keyA.Equals(keyB);

            // Assert
            Assert.AreEqual(result, expected);
        }