コード例 #1
0
        public void TestEmptyMetadataCreation()
        {
            var pid = ProjectId.CreateNewId();

            using (var workspace = new MonoDevelopWorkspace(null))
                using (var data = new MonoDevelopWorkspace.ProjectData(pid, ImmutableArray <MonoDevelopMetadataReference> .Empty, workspace)) {
                    // Do nothing, we just want to see it construct and dispose properly.
                }
        }
コード例 #2
0
        public async Task TestEmptyMetadataCreation()
        {
            var pid = ProjectId.CreateNewId();

            using (var workspace = await IdeApp.TypeSystemService.CreateEmptyWorkspace()) {
                var data = new MonoDevelopWorkspace.ProjectData(pid, ImmutableArray <MonoDevelopMetadataReference> .Empty, workspace);
                data.Disconnect();
                // Do nothing, we just want to see it construct and dispose properly.
            }
        }