Esempio n. 1
0
        public void ControlFinder_FindControl_ReturnsCorrectControl(Type expectedType, string controlName, string htmlResourceName)
        {
            string resourcePath = Path.Combine(_resourcesPath, htmlResourceName);
            string source       = File.ReadAllText(resourcePath);

            var controlFinder = new ControlFinder("");
            var webControl    = controlFinder.FindControl(source, controlName);

            Assert.IsInstanceOf(expectedType, webControl);
        }