Ejemplo n.º 1
0
        public void CanRemoveAFieldFromTheEqualityComparision()
        {
            var recordA = new SomeRecord(4, 6);
            var recordB = new SomeRecord(4, 8);

            recordA.Should().Be(recordB);
        }
Ejemplo n.º 2
0
        public void CanCreateANewInmmutableRecord()
        {
            var recordA = new SomeRecord(4, 6);
            var recordB = new SomeRecord(6, 8);

            recordA.Should().NotBe(recordB);

            var recordC = recordB.With(value: 4);

            recordC.Should().Be(recordA);
        }