Exemplo n.º 1
0
        public void SutEqualsIdenticalOther(AtomAuthor sut)
        {
            var other  = sut.WithName(sut.Name);
            var actual = sut.Equals(other);

            Assert.True(actual);
        }
Exemplo n.º 2
0
        public void WithNameReturnsCorrectResult(
            [Modest] AtomAuthor sut,
            string newName)
        {
            AtomAuthor actual = sut.WithName(newName);

            var expected = actual.AsSource().OfLikeness <AtomAuthor>()
                           .With(x => x.Name).EqualsWhen(
                (s, d) => object.Equals(newName, s.Name));

            expected.ShouldEqual(actual);
        }