Beispiel #1
0
 public void Setup()
 {
     _serfs = new Serfs("TestTemplates");
 }
Beispiel #2
0
 public void CanSpecifyAssemblyPrefixAndFolder()
 {
     Assembly resources = AppDomain.CurrentDomain.Load("ResourcesForSerfsTest");
     _serfs = new Serfs(resources, "ResourcesForSerfsTest", "Files");
     using (Stream stream = _serfs.OpenRead("HelloSerfs.txt")) {
         StreamReader reader = new StreamReader(stream);
         Assert.AreEqual("Hello Serfs!", reader.ReadLine());
     }
 }