예제 #1
0
        public void SetUp()
        {
            theFileSystem   = MockRepository.GenerateStub <IFileSystem>();
            theFile         = TestFileHelper.RelativePath("serenity.txt");
            theFileContents = "include:MyProject.Web";

            theFileSystem.Stub(x => x.ReadStringFromFile(theFile.ToFullPath())).Return(theFileContents);

            theLoader        = new JasmineConfigLoader(theFileSystem);
            theConfiguration = theLoader.LoadFrom(theFile);
        }
예제 #2
0
        public void SetUp()
        {
            theFileSystem = MockRepository.GenerateStub <IFileSystem>();
            theFile       = TestFileHelper.RelativePath("serenity.txt");

            theFileContents = new StringBuilder()
                              .AppendLine("exclude:MyProject.Web{0}.idea".ToFormat(Path.DirectorySeparatorChar))
                              .AppendLine("exclude:MyProject.Web{0}Web.config".ToFormat(Path.DirectorySeparatorChar))
                              .ToString();

            theFileSystem.Stub(x => x.ReadStringFromFile(theFile.ToFullPath())).Return(theFileContents);

            theLoader        = new JasmineConfigLoader(theFileSystem);
            theConfiguration = theLoader.LoadFrom(theFile);
        }