public void DsfPathCreate_UpdateForEachInputs_NullUpdates_DoesNothing() { //------------Setup for test-------------------------- var newGuid = Guid.NewGuid(); var outputPath = string.Concat(TestContext.TestRunDirectory, "\\", newGuid + "[[CompanyName]]2.txt"); var act = new DsfPathCreate { OutputPath = outputPath, Result = "[[CompanyName]]" }; //------------Execute Test--------------------------- act.UpdateForEachInputs(null); //------------Assert Results------------------------- Assert.AreEqual(outputPath, act.OutputPath); }
public void DsfPathCreate_UpdateForEachInputs_1Update_Updates() { //------------Setup for test-------------------------- var newGuid = Guid.NewGuid(); var outputPath = string.Concat(TestContext.TestRunDirectory, "\\", newGuid + "[[CompanyName]]2.txt"); var act = new DsfPathCreate { OutputPath = outputPath, Result = "[[CompanyName]]" }; var tuple1 = new Tuple <string, string>(outputPath, "Test"); //------------Execute Test--------------------------- act.UpdateForEachInputs(new List <Tuple <string, string> > { tuple1 }); //------------Assert Results------------------------- Assert.AreEqual("Test", act.OutputPath); }