RelativePath() public static method

public static RelativePath ( ) : string
return string
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public void contains_the_content_folders()
 {
     theConfiguration
     .ContentFolders
     .ShouldHaveTheSameElementsAs(TestFileHelper.RelativePath("MyProject.Web"), TestFileHelper.RelativePath("MyProject.Web2"));
 }
Ejemplo n.º 4
0
 public void excluding_a_file_extension_pattern()
 {
     theConfiguration.AddExclude(".js___jb_bak___");
     theConfiguration.ShouldExclude(TestFileHelper.RelativePath("MyProject.Web", ".idea", "something.js___jb_bak___")).ShouldBeTrue();
 }
Ejemplo n.º 5
0
 public void excluding_a_file_within_a_directory_that_is_ignored()
 {
     theConfiguration.AddExclude("MyProject.Web{0}.idea".ToFormat(Path.DirectorySeparatorChar));
     theConfiguration.ShouldExclude(TestFileHelper.RelativePath("MyProject.Web", ".idea", "something.txt")).ShouldBeTrue();
 }
Ejemplo n.º 6
0
 public void excluding_a_file()
 {
     theConfiguration.AddExclude("MyProject.Web{0}Web.config".ToFormat(Path.DirectorySeparatorChar));
     theConfiguration.ShouldExclude(TestFileHelper.RelativePath("MyProject.Web", "Web.config")).ShouldBeTrue();
 }
Ejemplo n.º 7
0
 public void basic_negative()
 {
     // starting with nothing
     theConfiguration.ShouldExclude(TestFileHelper.RelativePath("MyProject.Web", ".idea")).ShouldBeFalse();
 }
Ejemplo n.º 8
0
 public void SetUp()
 {
     theConfiguration = new JasmineConfiguration(TestFileHelper.RelativePath("serenity.txt"));
 }
Ejemplo n.º 9
0
 public void contains_the_excludes()
 {
     theConfiguration
     .ExcludeFilters
     .ShouldHaveTheSameElementsAs(TestFileHelper.RelativePath("MyProject.Web", ".idea"), TestFileHelper.RelativePath("MyProject.Web", "Web.config"));
 }