Exemple #1
0
        public void TestThat_X9RecordAndNull_AreNotEqual()
        {
            // Arrange
            var record1 = new TestX9();

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

            // Assert
            Assert.False(result);
        }
Exemple #2
0
        public void TestThat_X9RecordsOfDifferentTypes_AreNotEqual()
        {
            // Arrange
            var record1 = new TestX9();
            var record2 = new TestOtherX9();

            // Act
            var result = record1.Equals(record2);

            // Assert
            Assert.False(result);
        }
Exemple #3
0
        public void TestThat_X9RecordsReference_AreEqual()
        {
            // Arrange
            var record1 = new TestX9();
            var record2 = record1;

            // Act
            var result = record1.Equals(record2);

            // Assert
            Assert.True(result);
        }