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

            // Assert.
            result.ShouldBeTrue();
        }
Example #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();
        }
Example #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();
        }
Example #4
0
 public void GivenTwoEqualModels_ShouldLookLike_ShouldNotThrowAnException(FakeFoo actual, FakeFoo expected)
 {
     // Arrange, Act & Assert.
     actual.ShouldLookLike(expected);
 }