public void ShouldReturnTheIndexView()
        {
            var ic = new IndexController();

            var view = ic.Index();

            Assert.That(view.ViewName, Is.EqualTo("Index"));
        }
        public void IndexShouldReturnZero()
        {
            var ic = new IndexController();

            var view =  ic.Index();

            var model = (IndexViewModel) view.Model;
            Assert.That(model.Result, Is.EqualTo(0));
            Assert.That(model.Exception, Is.Null);
        }
        internal static IndexViewModel ShouldAddUpTo(this string values, int expected)
        {
            var ic = new IndexController();

            var view = ic.StringAdd(values);
            var model = (IndexViewModel) view.Model;
            Assert.That(model.Result, Is.EqualTo(expected));
            return model;
        }