Exemple #1
0
        public void set_argument_if_the_argument_is_not_simple_pulls_that_argument_from_testcontext()
        {
            var cell = new Cell("address", typeof (Address));
            var context = new TestContext();
            var address = new Address();
            context.Store(address);

            object argValue = null;

            cell.ReadArgument(context, new Step(), x => argValue = x);

            argValue.ShouldBeTheSameAs(address);
        }
        public void store_and_retrieve()
        {
            var context = new TestContext();
            var data = new SomeContext();

            context.Store(data);

            context.Retrieve<SomeContext>().ShouldBeTheSameAs(data);
        }