Ejemplo n.º 1
0
        public void Should_clone_itself()
        {
            var photo = new Photo(new Point(1, 2), "Thai", "Path");

            var clonedPhoto = photo.Clone();

            clonedPhoto.Should().NotBeSameAs(photo);

            clonedPhoto.Center.Should().Be(new Point(1, 2));
            clonedPhoto.Nationality.Should().Be("Thai");
            clonedPhoto.ImagePath.Should().Be("Path");
        }