Esempio n. 1
0
        void GetPathReturnsRelativePathForRelativeInputPath()
        {
            var resolver = new FilenameAppendPathProjection("__TEST__");
            var path     = @"baz.exe";

            Assert.Equal(@"baz__TEST__.exe", resolver.GetPath(path));
        }
Esempio n. 2
0
        void GetPathReturnsAbosolutePathForAbsoluteInputPath()
        {
            var resolver = new FilenameAppendPathProjection("__TEST__");
            var path     = @"C:\foo\bar\baz.exe";

            Assert.Equal(@"C:\foo\bar\baz__TEST__.exe", resolver.GetPath(path));
        }
Esempio n. 3
0
        void ConvertedFilePathProjectionIsIPathProjection()
        {
            var resolver = new FilenameAppendPathProjection("__TEST__");

            Assert.IsAssignableFrom <IPathProjection>(resolver);
        }