Пример #1
0
        public void TestToFullPath()
        {
            var path     = DynaFile.ToFullPath("Vlingo.Actors.Startable");
            var expected = string.Format("Vlingo{0}Actors{0}Startable", Path.DirectorySeparatorChar);

            Assert.Equal(expected, path);
        }
Пример #2
0
 // SetUp
 public ProxyFileTest()
 {
     parentPath       = Path.Combine(Path.GetTempPath(), DynaFile.ToNamespacePath(ClassName));
     parentPathFile   = new DirectoryInfo(parentPath);
     pathToSource     = Path.Combine(Path.GetTempPath(), $"{DynaFile.ToFullPath(ClassName)}.cs");
     pathToSourceFile = new FileInfo(pathToSource);
 }