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); }
// 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); }