我與ReSharper的工作,當我清理我的代碼,我得到這樣的佈局:ReSharper的嵌入對象初始化
mock.Setup(m => m.Products).Returns(new List<Product>{new Product{Name = "Football", Price = 25}, new Product{Name = "Surf board", Price = 179}, new Product{Name = "Running Shoes", Price = 95}}.AsQueryable());
我寧願有:
mock.Setup(m => m.Products).Returns(new List<Product>{
new Product{Name = "Football", Price = 25},
new Product{Name = "Surf board", Price = 179},
new Product{Name = "Running Shoes", Price = 95}
}.AsQueryable());
這可能嗎?
+1第一:) – Abbas 2012-02-23 11:10:41