コード例 #1
0
        public void ReadConverterDoesNotThrowWithNullEngineAndScheduler()
        {
            CurrentDynamoModel.AddHomeWorkspace();
            var json = CurrentDynamoModel.CurrentWorkspace.ToJson(null);

            Assert.DoesNotThrow(() =>
            {
                WorkspaceModel.FromJson(
                    json, this.CurrentDynamoModel.LibraryServices,
                    null,
                    null,
                    this.CurrentDynamoModel.NodeFactory,
                    true,
                    true,
                    this.CurrentDynamoModel.CustomNodeManager);
            });
        }
コード例 #2
0
 public void ConverterDoesNotThrowWithNullEngine()
 {
     CurrentDynamoModel.AddHomeWorkspace();
     Assert.DoesNotThrow(() => { CurrentDynamoModel.CurrentWorkspace.ToJson(null); });
 }