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); }
public void TestPersistProxyClassSource() { parentPathFile.Create(); DynaFile.PersistDynaClassSource(pathToSource, Source); using (var input = pathToSourceFile.OpenText()) { Assert.Equal(Source, input.ReadToEnd()); } }
public void TestToPackagePath() { var path = DynaFile.ToNamespacePath("Vlingo.Actors.Startable"); Assert.Equal($"Vlingo{Path.DirectorySeparatorChar}Actors", path); }