Example #1
0
        public void CreateOneComplexRocket()
        {
            /* Arrange */
            IEnumerable <RocketOrder> got;

            /* Act */
            got = MockRockets.GetComplexOrders();
            //got.See();

            /* Assert */
            Aver.IsNotNull(got);
            Aver.IsTrue(got.Any());

            var gotDescription = RocketBuilder.CreateRocket(got.FirstOrDefault());

            gotDescription.See();

            Aver.IsTrue(!string.IsNullOrWhiteSpace(gotDescription));
        }
Example #2
0
        public async Task BuildComplexRockets()
        {
            /* Arrange */
            IEnumerable <RocketOrder> got;

            /* Act */
            got = MockRockets.GetComplexOrders();
            //got.See();

            /* Assert */
            Aver.IsNotNull(got);
            Aver.IsTrue(got.Any());

            var builtRockets = RocketBuilder.Build(got);

            Aver.IsTrue(await builtRockets.AnyAsync());

            await foreach (var rocket in builtRockets)
            {
                rocket.See();
            }
        }