public void Regress7808() { // Verify that updating the function defintion will execute code blocks node that use // this function. var dynFilePath = Path.Combine(TestDirectory, @"core\dsevaluation\regress7808.dyn"); OpenModel(dynFilePath); // Original function defintion is // def foo() { return = 21;} var watchNodeGuid = "aef2375c-3dd8-4be0-8230-d964a2417f99"; AssertPreviewValue(watchNodeGuid, 21); // change to // def foo() { return = 42; } var cbnGuid = Guid.Parse("6a260ba7-d658-4350-a777-49511f725454"); var command = new Models.DynamoModel.UpdateModelValueCommand(Guid.Empty, cbnGuid, "Code", @"def foo() { return = 42; }"); CurrentDynamoModel.ExecuteCommand(command); RunCurrentModel(); AssertPreviewValue(watchNodeGuid, 42); }