Пример #1
0
        public void Equals_DoesNotMatchNull()
        {
            // Arrange
            var infoIdentifier = new InfoIdentifier("test");

            // Act
            var result = infoIdentifier.Equals(null);

            // Arrange
            Assert.That(result, Is.False);
        }
Пример #2
0
        public void Equals_MatchEqualObject(string firstId, string secondId, bool expectedResult)
        {
            // Arrange
            var firstInfoIdentifier = new InfoIdentifier(firstId);
            var secondInfoIdentifier = new InfoIdentifier(secondId);

            // Act
            bool result = firstInfoIdentifier.Equals(secondInfoIdentifier);
            
            // Assert
            Assert.That(result, Is.EqualTo(expectedResult));
        }
Пример #3
0
        public void Equals_DoesMatchString()
        {
            // Arrange
            var infoIdentifier = new InfoIdentifier("test");

            // Act
            var result = infoIdentifier.Equals("test");

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