Exemplo n.º 1
0
        public void Not_setting_rendering_context_results_in_original_behaviour()
        {
            // Arrange
            var glassUserControl = new GlassUserControl <StubClass>();

            // Act
            IRenderingContext result = glassUserControl.RenderingContext;

            // Assert
            result.Should().NotBeNull();
            result.GetType().Should().Be(typeof(RenderingContextUserControlWrapper));
        }
        public void Not_setting_rendering_context_results_in_original_behaviour()
        {
            // Arrange
            var glassUserControl = new GlassUserControl <StubClass>();

            // Act
            IRenderingContext result = glassUserControl.RenderingContext;

            // Assert
            Assert.NotNull(result);
            Assert.AreEqual(typeof(RenderingContextUserControlWrapper), result.GetType());
        }