예제 #1
0
        public void TestWriteTransferActivity()
        {
            var buffer = File.ReadAllBytes(@"C:\temp\logging\log.txt");

            WorkflowFactory.Using("Stardust.Core.CrossCuttingTest");
            var container = WorkflowFactory.CreateWorkflowContainer <TestContainerBase>();

            container.File = buffer;
            var result = container.RunWorkflow();

            Assert.IsTrue(result.OutArguments.IsInstance());
            if (File.Exists(@"C:\temp\logging\testFile.txt"))
            {
                Assert.IsTrue(true);
                File.Delete(@"C:\temp\logging\testFile.txt");
            }
            else
            {
                Assert.Fail();
            }
        }