Exemplo n.º 1
0
                public void WhenRender_NestedComponentIsCreated()
                {
                    var props = new Props.NestedComposite();

                    renderer = CreateRenderer(() => props);
                    renderer.Render(NewState.Empty);

                    Assert.That(props.Generated.Component, Is.Not.Null);
                }
Exemplo n.º 2
0
                public void WhenRender_GeneratedIsAssignedRenderedProperty()
                {
                    var props = new Props.NestedComposite();

                    renderer = CreateRenderer(() => props);
                    renderer.Render(NewState.Empty);

                    Assert.That(props.Generated, Is.TypeOf <Props.SimpleComposite>());
                }