コード例 #1
0
ファイル: CellTester.cs プロジェクト: adymitruk/storyteller
        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);
        }
コード例 #2
0
        public void store_and_retrieve()
        {
            var context = new TestContext();
            var data = new SomeContext();

            context.Store(data);

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