Amido.PreProcessor.Cmd.Tests.TokenisationRunnerTests.TestProcessSingleTemplate_UsingConventionForDestinationFilePath_InvalidSourceFile_ExceptionExpected C# (CSharp) Method

TestProcessSingleTemplate_UsingConventionForDestinationFilePath_InvalidSourceFile_ExceptionExpected() private method

        public void TestProcessSingleTemplate_UsingConventionForDestinationFilePath_InvalidSourceFile_ExceptionExpected()
        {
            sourceFile = @"c:\aDir\someFile.xml";
            destFile = null;

            var properties = new Dictionary<string, string>();
            IList<string> tokensNotFound = new List<string>();

            this.mockTokeniser.Setup(x => x.TryReplace(sourceFile, properties, out tokensNotFound)).Returns(sourceFile);
            this.mockTokeniser.Setup(x => x.TryReplace(destFile, properties, out tokensNotFound)).Returns(destFile);

            this.mockFSO.Setup(x => x.FileExists(sourceFile)).Returns(true);

            Xunit.Assert.Throws<InvalidOperationException>(() => this.tokenisationRunner.ProcessSingleTemplate(properties, sourceFile, destFile));

        }