Пример #1
0
        public static void NestedCallThatIncludesArrayConstruction(
            IFoo fake,
            Exception exception)
        {
            "Given a fake"
            .x(() => fake = A.Fake <IFoo>());

            "When I specify a call and create a non-object array in the call configuration"
            .x(() => exception = Record.Exception(() => A.CallTo(() => fake.Wrap(Foo.BuildFromArray(new[] { 1, 2, 3 })))));

            "Then it doesn't throw"
            .x(() => exception.Should().BeNull());
        }