Ejemplo n.º 1
0
            public void Compose_ReturnOrSpecification()
            {
                var sut    = new OrNotFluentProxy <object>(MockSpecification.True());
                var result = sut.Compose(MockSpecification.True());

                Assert.NotNull(result);
                Assert.IsType <OrSpecification <object> >(result);
            }
Ejemplo n.º 2
0
            public void Compose_ReturnOrWithNegatedRight()
            {
                var sut   = new OrNotFluentProxy <object>(MockSpecification.True());
                var orNot = sut.Compose(MockSpecification.True());

                var fieldInfo = orNot.GetType().GetTypeInfo().BaseType
                                .GetField("_right", BindingFlags.Instance | BindingFlags.NonPublic);
                var result = fieldInfo.GetValue(orNot);

                Assert.NotNull(result);
                Assert.IsType <NotSpecification <object> >(result);
            }