Пример #1
0
        public void GivenTwoEqualModels_LooksLike_ShouldReturnTrue(FakeFoo actual, FakeFoo expected)
        {
            // Arrange & Act.
            var result = actual.LooksLike(expected);

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