Beispiel #1
0
        public void Equals_WithNull_ReturnsFalse()
        {
            // Arrange
            Plain p1 = new Plain("a dog");
            // Act
            bool assert = p1.Equals(null);

            // Assert
            Assert.IsFalse(assert);
        }
Beispiel #2
0
        public void Equals_WithSelf_ReturnsTrue()
        {
            // Arrange
            Plain p1 = new Plain("a dog");
            // Act
            bool assert = p1.Equals(p1);

            // Assert
            Assert.IsTrue(assert);
        }
Beispiel #3
0
        public void Equals_WithOther_ReturnsFalse()
        {
            // Arrange
            Plain p1 = new Plain("a dog");
            Plain p2 = new Plain("a cat");
            // Act
            bool assert = p1.Equals(p2);

            // Assert
            Assert.IsFalse(assert);
        }
Beispiel #4
0
        public void Equals_WithSame_ReturnsTrue()
        {
            // Arrange
            var p1 = new Plain("a dog");
            var p2 = new Plain("a dog");
            // Act
            var assert = p1.Equals(p2);

            // Assert
            Assert.IsTrue(assert);
        }