public void Compose_ReturnAndSpecification() { var sut = new AndNotFluentProxy <object>(MockSpecification.True()); var result = sut.Compose(MockSpecification.True()); Assert.NotNull(result); Assert.IsType <AndSpecification <object> >(result); }
public void Compose_ReturnAndWithNegatedRight() { var sut = new AndNotFluentProxy <object>(MockSpecification.True()); var andNot = sut.Compose(MockSpecification.True()); var fieldInfo = andNot.GetType().GetTypeInfo().BaseType .GetField("_right", BindingFlags.Instance | BindingFlags.NonPublic); var result = fieldInfo.GetValue(andNot); Assert.NotNull(result); Assert.IsType <NotSpecification <object> >(result); }