GroupsController.Get,在所有对它的引用超出作用域之前,在对象’响应‘上调用System.IDisposable.Dispose
var content不幸的是,现在我的测试之一是抱怨它不能再访问已释放的对象。httpResponseMessage.Content.ReadAsStringAsync();
Assert.AreEqual(expectedJson,
下面的代码生成表示存档条目的IEnumerable of TestCaseData,它是测试的输入。toscaNetAnalyzer.Analyze(new StreamReader(zipArchiveEntry.Open()));上面的代码在下面的行中失败:除以下情况外:
System.ObjectDisposedException“无法访问已释放的对象.对象名称:'ZipA