예제 #1
0
        public void DeployLinqScriptTest()
        {
            DynamicDebuggerVisualizer cVisualizerObjectSource = new DynamicDebuggerVisualizer(_fileSystem);

            cVisualizerObjectSource.DeployLinqScript(_message);

            string dstScriptPath = CommonFolderPaths.DefaultLinqPadQueryFolder;

            string fileNamePath = Path.Combine(dstScriptPath, _message.AssemblyName, _message.FileName);

            Assert.IsTrue(_fileSystem.File.Exists(fileNamePath));
        }
예제 #2
0
        public void DeployLinqScriptTest()
        {
            var cVisualizerObjectSource = new DynamicDebuggerVisualizer(_fileSystem);

            cVisualizerObjectSource.DeployLinqScript(_message);


            var dstScriptPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
                                             "LINQPad Queries", "LINQBridge");

            var fileNamePath = Path.Combine(dstScriptPath, string.Format(_message.FileName, _message.TypeFullName));

            Assert.IsTrue(_fileSystem.File.Exists(fileNamePath));
        }
예제 #3
0
        public void DeployLinqScriptTest()
        {
            Log.Configure("UnitTest", "DynamicDebuggerVisualizerUnitTest");

            DynamicDebuggerVisualizer cVisualizerObjectSource = new DynamicDebuggerVisualizer(_fileSystem);

            cVisualizerObjectSource.DeployLinqScript(_message);

            string dstScriptPath = CommonFolderPaths.LinqPadQueryFolder;

            string fileNamePath = Path.Combine(dstScriptPath, string.Format(_message.FileName, _message.TypeFullName));

            Assert.IsTrue(_fileSystem.File.Exists(fileNamePath));
        }
예제 #4
0
        public void DeployLinqScriptTest_Duplicate()
        {
            string dstScriptPath = CommonFolderPaths.DefaultLinqPadQueryFolder;
            string targetFolder  = Path.Combine(dstScriptPath, Message.AssemblyName);

            MockFileSystem.AddFile(Path.Combine(targetFolder, Message.FileName + ".linq"), new MockFileData(""));

            DynamicDebuggerVisualizer cVisualizerObjectSource = new DynamicDebuggerVisualizer();

            cVisualizerObjectSource.DeployLinqScript(Message, "15.0");

            string fileNamePath = Path.Combine(dstScriptPath, Message.AssemblyName, Message.FileName);

            Assert.IsTrue(FS.FileSystem.File.Exists(fileNamePath + "_1.linq"));
        }