コード例 #1
0
        public void IsEquivalentTo_Self_ShouldBeTrue()
        {
            // arrange
            var mockPersistentObject = new MockPersistentObject(Presets.MockDataRepository.Object);

            // act
            var isEquivalent = mockPersistentObject.IsEquivalentTo(mockPersistentObject, 2);

            // assert
            isEquivalent.Should().BeTrue();
        }
コード例 #2
0
        public void IsEquivalentTo_AnotherInstance_ShouldBeTrue()
        {
            // arrange
            var mockPersistentObjectA = new MockPersistentObject(Presets.MockDataRepository.Object);
            var mockPersistentObjectB = new MockPersistentObject(Presets.MockDataRepository.Object);

            // act
            var isEquivalent = mockPersistentObjectA.IsEquivalentTo(mockPersistentObjectB, 2);

            // assert
            isEquivalent.Should().BeTrue();
        }