Exemplo n.º 1
0
        public void GivenTwoEqualModels_LooksLike_ShouldReturnTrue(FakeFoo actual, FakeFoo expected)
        {
            // Arrange & Act.
            var result = actual.LooksLike(expected);

            // Assert.
            result.ShouldBeTrue();
        }
Exemplo n.º 2
0
        public void GivenTwoUnequalModels_ShouldLookLike_ShouldThrowAnException()
        {
            // Arrange.
            var actual   = new FakeFoo();
            var expected = new FakeFoo
            {
                Id = 1
            };

            // Act.
            var exception = Should.Throw <Exception>(() => actual.ShouldLookLike(expected));

            // Assert.
            exception.ShouldNotBeNull();
        }
Exemplo n.º 3
0
        public void GivenTwoUnequalModels_LooksLike_ShouldReturnFalse()
        {
            // Arrange.
            var actual   = new FakeFoo();
            var expected = new FakeFoo
            {
                Id = 1
            };

            // Act.
            var result = actual.LooksLike(expected);

            // Assert.
            result.ShouldBeFalse();
        }
Exemplo n.º 4
0
 public void GivenTwoEqualModels_ShouldLookLike_ShouldNotThrowAnException(FakeFoo actual, FakeFoo expected)
 {
     // Arrange, Act & Assert.
     actual.ShouldLookLike(expected);
 }