Пример #1
0
        public void WithName_should_clone_not_modify()
        {
            var sut = new User("1234567890", "Karo Hero", "Meisterhirte");

            var clone = sut.WithName("alter Karo Hero");

            clone.Should().NotBe(sut);
            clone.Should().NotBeEquivalentTo(sut);
            clone.Name.Should().Be("alter Karo Hero");
            sut.Name.Should().Be("Karo Hero");
        }