<commit_before>﻿using System.Web;
using NUnit.Framework;

namespace Crowbar.Tests
{
    public class CrowbarControllerTests : TestBase
    {
        [TestCase("_ToString")]
        [TestCase("~/Views/Partials/_ToString.cshtml")]
        public void Can_render_partial_view_to_string(string viewName)
        {
            Application.Execute(client =>
            {
                HttpCookieCollection cookies;
                Assert.DoesNotThrow(() => CrowbarController.ToString(viewName, null, out cookies));
            });
        }

        [TestCase("ToString")]
        [TestCase("~/Views/ToString.cshtml")]
        public void Can_render_view_to_string(string viewName)
        {
            Application.Execute(client =>
            {
                HttpCookieCollection cookies;
                Assert.DoesNotThrow(() => CrowbarController.ToString(viewName, null, out cookies));
            });
        }

        [Test]
        public void Can_specifiy_custom_route_data_values()
        {
            Application.Execute(client =>
            {
                HttpCookieCollection cookies;

                var context = new CrowbarViewContext("Index") { ControllerName = "Custom" };
                Assert.DoesNotThrow(() => CrowbarController.ToString(context, null, out cookies));
            });
        }
    }
}<commit_msg>Fixed typo in test method.<commit_after>﻿using System.Web;
using NUnit.Framework;

namespace Crowbar.Tests
{
    public class CrowbarControllerTests : TestBase
    {
        [TestCase("_ToString")]
        [TestCase("~/Views/Partials/_ToString.cshtml")]
        public void Can_render_partial_view_to_string(string viewName)
        {
            Application.Execute(client =>
            {
                HttpCookieCollection cookies;
                Assert.DoesNotThrow(() => CrowbarController.ToString(viewName, null, out cookies));
            });
        }

        [TestCase("ToString")]
        [TestCase("~/Views/ToString.cshtml")]
        public void Can_render_view_to_string(string viewName)
        {
            Application.Execute(client =>
            {
                HttpCookieCollection cookies;
                Assert.DoesNotThrow(() => CrowbarController.ToString(viewName, null, out cookies));
            });
        }

        [Test]
        public void Can_specify_custom_route_data_values()
        {
            Application.Execute(client =>
            {
                HttpCookieCollection cookies;

                var context = new CrowbarViewContext("Index") { ControllerName = "Custom" };
                Assert.DoesNotThrow(() => CrowbarController.ToString(context, null, out cookies));
            });
        }
    }
}
{'fraction_non_alphanumeric': 0.10266864343958487, 'fraction_numerical': 0.0, 'mean_word_length': 1.9856194690265487, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6805155', 'n_tokens_mistral': 677, 'n_tokens_neox': 651, 'n_words': 116}