如果是这样的话:
static class ManifestGenerator
{
public static void GenerateManifestFile(){
var doc = new XDocument();
...
... xml stuff added to doc
...
doc.Save(manifestFilePath)
}
Now can you please tell me how can I create a unit test that will ensure that the method generates correct xml? How can I mock XDocument (I am using Moq), without adding additional parameters to the method call