使用单元测试Sitecore的NUnit的,序列化的内容 [英] Unit Testing Sitecore using NUnit, serializing content

查看:165
本文介绍了使用单元测试Sitecore的NUnit的,序列化的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的事业,我的工作单元测试,完成一个例子,.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

  1. 在Sitecore的单元测试视频通过gravypower。
  2. 在另一个有趣的视频通过codeflood。
  3. 最博学的,我是这样的视频通过的阿利斯泰尔Deneys从刺猬 >
  1. Sitecore Unit Testing video by gravypower.
  2. Another interesting video by codeflood.
  3. Most knowledgeable for me was this video by Alistair Deneys from Hedgehog

其他有趣的博客是

  1. 冰屋 - 单元测试的Sitecore的
  2. iStern - 单元测试与Sitecore的项目通过托马斯·斯特恩
  3. 在Sitecore的嘲弄与MS假货第一部分部分二通过托马斯·斯特恩
  4. 最后一点我的preferred的咖啡=> codeR => code 再由阿利斯泰尔Deneys
  5. Knifecore的博客也帮助我,当我试图编写测试了很多。
  1. Igloo - Unit Testing for Sitecore
  2. iStern - Unit testing with Sitecore Item by Thomas Stern
  3. Mocking Sitecore with MS Fakes Part I and Part II by Thomas Stern
  4. And lastly my preferred Coffee => Coder => Code again by Alistair Deneys
  5. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆