public void ViewContentPassesThroughNormally()
        {
            Init();
            Assert.That(_adapter.HasView(string.Format("Home{0}Index.spark", Path.DirectorySeparatorChar)), Is.True);
            Assert.That(_adapter.HasView(string.Format("Home{0}Index2.spark", Path.DirectorySeparatorChar)), Is.False);

            var contents = ReadContents(_adapter, string.Format("Home{0}Index.spark", Path.DirectorySeparatorChar));

            Assert.That(contents, Is.EqualTo("alpha"));

            var items = _adapter.ListViews("Home");

            Assert.That(items.Count, Is.EqualTo(1));
            Assert.That(items[0], Is.EqualTo(string.Format("Home{0}Index.spark", Path.DirectorySeparatorChar)));
        }
Esempio n. 2
0
        public void ViewContentPassesThroughNormally()
        {
            Init();
            Assert.That(_adapter.HasView("Home\\Index.spark"), Is.True);
            Assert.That(_adapter.HasView("Home\\Index2.spark"), Is.False);

            var contents = ReadContents(_adapter, "Home\\Index.spark");

            Assert.That(contents, Is.EqualTo("alpha"));

            var items = _adapter.ListViews("Home");

            Assert.That(items.Count, Is.EqualTo(1));
            Assert.That(items[0], Is.EqualTo("Home\\Index.spark"));
        }