public void LoadFromAssembly() { loader.AddAssemblySource(new AssemblySourceInfo("Castle.MonoRail.Framework.Tests", "Castle.MonoRail.Framework.Tests")); Assert.IsFalse(loader.HasSource("Content/contentinassembly2.vm")); Assert.IsTrue(loader.HasSource("Content/contentinassembly.vm")); Assert.IsNotNull(loader.GetViewSource("Content/contentinassembly.vm")); Assert.IsFalse(loader.HasSource("Content\\contentinassembly2.vm")); Assert.IsTrue(loader.HasSource("Content\\contentinassembly.vm")); Assert.IsNotNull(loader.GetViewSource("Content\\contentinassembly.vm")); }
public void LoadFromFileSystem() { Assert.IsFalse(loader.HasSource("contentinfs2.vm")); Assert.IsTrue(loader.HasSource("contentinfs.vm")); Assert.IsNotNull(loader.GetViewSource("contentinfs.vm")); }