public void Container_CanBeRegistered()
        {
            registration.Tab("Content", "Primary content");

            var definition = registration.Finalize();

            var container = definition.Containers.Single();

            Assert.That(container, Is.InstanceOf <TabContainerAttribute>());
            Assert.That(container.Name, Is.EqualTo("Content"));
            Assert.That(((TabContainerAttribute)container).TabText, Is.EqualTo("Primary content"));
        }
Exemple #2
0
        public void Container()
        {
            registration.Tab("Content", "Primary content");

            var definition = registration.AppendDefinition(sourceDefinition);

            var container = definition.Containers.Single();

            Assert.That(container, Is.InstanceOf <TabContainerAttribute>());
            Assert.That(container.Name, Is.EqualTo("Content"));
            Assert.That(((TabContainerAttribute)container).TabText, Is.EqualTo("Primary content"));
        }