使用单元测试Sitecore的NUnit的,序列化的内容 [英] Unit Testing Sitecore using NUnit, serializing content
问题描述
在我的事业,我的工作单元测试,完成一个例子,.NET应用程序之后。我们想用一个标准的.NET单元测试项目。我们也希望通过序列化Sitecore的对象嘲笑Sitecore的数据。我一直在寻找,也没有找到一个很好的教程来做到这一点。我怎样才能做到这一点?
In my business, I am working on Unit Testing, after finishing an example in a .NET application. We want to use a standard .NET Unit Testing project. We also want to mock the Sitecore data by serializing the Sitecore objects. I have been looking for, but could not find a good tutorial to do this. How can I do this?
推荐答案
在Youtube上的有趣视频
Interesting videos on Youtube
- 在Sitecore的单元测试视频通过gravypower。
- 在另一个有趣的视频通过codeflood。
- 最博学的,我是这样的视频通过的阿利斯泰尔Deneys从刺猬 李 >
- Sitecore Unit Testing video by gravypower.
- Another interesting video by codeflood.
- Most knowledgeable for me was this video by Alistair Deneys from Hedgehog
其他有趣的博客是
- 冰屋 - 单元测试的Sitecore的 李>
- iStern - 单元测试与Sitecore的项目一>通过托马斯·斯特恩
- 在Sitecore的嘲弄与MS假货第一部分和部分二通过托马斯·斯特恩
- 最后一点我的preferred的咖啡=> codeR => code 再由阿利斯泰尔Deneys
- Knifecore的博客也帮助我,当我试图编写测试了很多。
- Igloo - Unit Testing for Sitecore
- iStern - Unit testing with Sitecore Item by Thomas Stern
- Mocking Sitecore with MS Fakes Part I and Part II by Thomas Stern
- And lastly my preferred Coffee => Coder => Code again by Alistair Deneys
- Knifecore's blog also helped me a lot when I was trying to write tests.
让我们知道,如果这是有帮助的。
Let us know if this was helpful.
如果您有兴趣系列化,克恩南丁格尔已经得到了的完美presentation ,这将给你的洞察力如何使用它进行测试也是如此。
If you are interested in Serialization, Kern Nightingale has got a perfect presentation which will give you insight to how to use it for testing as well.
最后还建议 Sitecore的一瞥通过的凯文Obee利用,该项目的目的之一是
Finally would also recommend Sitecore Glimpse by Kevin Obee, the project's one of the purpose is "provide build scripts that automate the tasks of compiling, testing and packaging the project artifacts to make it easier to open the project up for collaborative development" which he mentions on his blog.
这篇关于使用单元测试Sitecore的NUnit的,序列化的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!